org.openpermis.policy
Interface Part

All Superinterfaces:
Serializable
All Known Subinterfaces:
Action, ActionBean, ActionBeanCollection, ActionCollection, Authority, AuthorityBean, BeanCollection<P>, Domain, DomainBean, Obligation, ObligationBean, ObligationBeanCollection, ObligationCollection, PartBean, Policy, PolicyBean, Predicate, PredicateBean, RoleAssignmentRule, RoleAssignmentRuleBean, RoleAssignmentRuleBeanCollection, RoleAssignmentRuleCollection, RoleHierarchy, RoleHierarchyBean, RoleHierarchyBeanCollection, RoleHierarchyCollection, Target, TargetAccessRule, TargetAccessRuleBean, TargetAccessRuleBeanCollection, TargetAccessRuleCollection, TargetBean, TargetBeanCollection, TargetCollection
All Known Implementing Classes:
AbstractPredicate, And, BasicAbstractCollection, BasicAction, BasicActionCollection, BasicAuthority, BasicDomain, BasicObligation, BasicObligationCollection, BasicPart, BasicPartBean, BasicPolicy, BasicRoleAssignmentRule, BasicRoleAssignmentRuleCollection, BasicRoleHierarchy, BasicRoleHierarchyCollection, BasicTarget, BasicTargetAccessRule, BasicTargetAccessRuleCollection, BasicTargetCollection, False, Not, Or, Present, SubstringOf, True, ValueRelationalPredicate, ValueSetRelationalPredicate

public interface Part
extends Serializable

Describes a part of a policy.

All complex objects in a policy implement the part interface.

Since:
0.1.0

Method Summary
 boolean equals(Object obj)
          Check if this policy part is equivalent to the one specified.
 int hashCode()
          Returns the hash code of this policy part.
 String toString()
          Returns a string representation of this policy part.
 

Method Detail

equals

boolean equals(Object obj)
Check if this policy part is equivalent to the one specified.

A part is considered equivalent to this part if it's state is equivalent to the state of this part and all parts contained are equivalent to the parts contained in this policy part.

Overrides:
equals in class Object
Parameters:
obj - the policy part to compare this policy part to.
See Also:
hashCode()
Since:
0.1.0

hashCode

int hashCode()
Returns the hash code of this policy part.

In addition to the general contract for Object.hashCode() the hash code of a policy part should not make use of the default object hash code. Instead the hash code of a policy part should only be calculated according to the contents of the policy part in such a way that different instances of a policy part with the same content return the same hash code.

Overrides:
hashCode in class Object
See Also:
equals(Object)
Returns:
the hash code of this policy part.
Since:
0.1.0

toString

String toString()
Returns a string representation of this policy part.

The string representation is purely informational and provides summary of the part in the following form: PartName [serial=value, ...]. The string representation starts with the simple implementation class name and is followed by its details in square brackets.

Overrides:
toString in class Object
See Also:
Object.toString()
Returns:
the string representation of this policy part.
Since:
0.1.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG