org.identityconnectors.framework.common.objects
Class ConnectorObject

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.ConnectorObject

public final class ConnectorObject
extends Object

A ConnectorObject represents an object (e.g., an Account or a Group) on the target resource. Each ConnectorObject represents a resource object as a UID and a bag of attributes. The developer of a Connector will use a ConnectorObjectBuilder to construct instances of ConnectorObject.


Constructor Summary
ConnectorObject(ObjectClass objectClass, Set<? extends Attribute> set)
          Public only for serialization; please use ConnectorObjectBuilder.
 
Method Summary
 boolean equals(Object obj)
           
 Attribute getAttributeByName(String name)
          Get an attribute by if it exists else null.
 Set<Attribute> getAttributes()
          Get the set of attributes that represent this object.
 Name getName()
          Gets the Name of the object.
 ObjectClass getObjectClass()
          Gets the ObjectClass for this object.
 Uid getUid()
          Get the native identifier for this object.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectorObject

public ConnectorObject(ObjectClass objectClass,
                       Set<? extends Attribute> set)
Public only for serialization; please use ConnectorObjectBuilder.

Throws:
IllegalArgumentException - iff Name or Uid is missing from the set.
Method Detail

getAttributes

public Set<Attribute> getAttributes()
Get the set of attributes that represent this object. This includes the Uid and all OperationalAttributes.


getAttributeByName

public Attribute getAttributeByName(String name)
Get an attribute by if it exists else null.


getUid

public Uid getUid()
Get the native identifier for this object.


getName

public Name getName()
Gets the Name of the object.


getObjectClass

public ObjectClass getObjectClass()
Gets the ObjectClass for this object.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.