Skip navigation links


oracle.iam.identity.vo
Class RelationshipImpl

java.lang.Object
  extended by oracle.iam.identity.vo.RelationshipImpl

All Implemented Interfaces:
java.io.Serializable, Relationship
Direct Known Subclasses:
RoleGrant, RoleRelationship

public abstract class RelationshipImpl
extends java.lang.Object
implements Relationship
See Also:
Serialized Form

Constructor Summary
RelationshipImpl(java.lang.String id1, java.lang.String id2)
           
RelationshipImpl(java.lang.String id1, java.lang.String id2, java.util.Map attrs)
           

 

Method Summary
 java.lang.Object getAttribute(java.lang.String attr)
          Get the value of the specified attribute attr.
 java.util.Set getAttributeNames()
          Provides a set of all the attribute names.
 java.util.Map getAttributes()
          Provides a map of all attribute-value pair of this identity.
 java.lang.String getID1()
          Provides a UID of the first identity.
 java.lang.String getID2()
          Provides a UID of the second identity.
 void setAttribute(java.lang.String attr, java.lang.Object val)
          Adds the attribute attr and it's value val.
 java.lang.String toString()
          Returns the string representation of this Relationship.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

RelationshipImpl

public RelationshipImpl(java.lang.String id1,
                        java.lang.String id2)

RelationshipImpl

public RelationshipImpl(java.lang.String id1,
                        java.lang.String id2,
                        java.util.Map attrs)

Method Detail

getID1

public java.lang.String getID1()
Description copied from interface: Relationship
Provides a UID of the first identity.
Specified by:
getID1 in interface Relationship
Returns:
a UID of the first identity.

getID2

public java.lang.String getID2()
Description copied from interface: Relationship
Provides a UID of the second identity.
Specified by:
getID2 in interface Relationship
Returns:
a UID of the second identity.

setAttribute

public void setAttribute(java.lang.String attr,
                         java.lang.Object val)
Description copied from interface: Relationship
Adds the attribute attr and it's value val.
Specified by:
setAttribute in interface Relationship
Parameters:
attr - The attribute to be added.
val - The value of the attribute.

getAttribute

public java.lang.Object getAttribute(java.lang.String attr)
Description copied from interface: Relationship
Get the value of the specified attribute attr.
Specified by:
getAttribute in interface Relationship
Parameters:
attr - The attribute whose value is to be returned.
Returns:
The value of the attribute. null if the attribute is not present.

getAttributes

public java.util.Map getAttributes()
Description copied from interface: Relationship
Provides a map of all attribute-value pair of this identity.
Specified by:
getAttributes in interface Relationship
Returns:
A map of all attribute-value pair of this identity.

getAttributeNames

public java.util.Set getAttributeNames()
Description copied from interface: Relationship
Provides a set of all the attribute names.
Specified by:
getAttributeNames in interface Relationship
Returns:
A set of all the attribute names.

toString

public java.lang.String toString()
Description copied from interface: Relationship
Returns the string representation of this Relationship.
Specified by:
toString in interface Relationship
Overrides:
toString in class java.lang.Object
Returns:
The string representation of this Relationship.

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.