Class ObjectClass
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ObjectClass
-
public final class ObjectClass extends java.lang.ObjectAn instance ofObjectClassspecifies a category or type ofConnectorObject. This class predefines some common object-classes, such asACCOUNTandGROUP.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectClassACCOUNTRepresents a human being in the context of a specific system or application.static java.lang.StringACCOUNT_NAMEThis constant defines a specific value of ObjectClass that is reserved forACCOUNT.static ObjectClassALLRepresents all collections that contains any object.static java.lang.StringALL_NAMEThis constant defines a specific value of ObjectClass that is reserved forALL.static ObjectClassGROUPRepresents a collection that contains an object (such as an account).static java.lang.StringGROUP_NAMEThis constant defines a specific value of ObjectClass that is reserved forGROUP.
-
Constructor Summary
Constructors Constructor Description ObjectClass(java.lang.String type)Create a custom object class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDisplayNameKey()Convenience method to build the display name key for an object class.java.lang.StringgetObjectClassValue()Get the name of the object class.inthashCode()booleanis(java.lang.String name)Determines if the 'name' matches thisObjectClass.java.lang.StringtoString()
-
-
-
Field Detail
-
ACCOUNT_NAME
public static final java.lang.String ACCOUNT_NAME
This constant defines a specific value of ObjectClass that is reserved forACCOUNT.
-
GROUP_NAME
public static final java.lang.String GROUP_NAME
This constant defines a specific value of ObjectClass that is reserved forGROUP.
-
ALL_NAME
public static final java.lang.String ALL_NAME
This constant defines a specific value of ObjectClass that is reserved forALL.
-
ACCOUNT
public static final ObjectClass ACCOUNT
Represents a human being in the context of a specific system or application.When an attribute matching this constant is found within a
ConnectorObject, this indicates that theConnectorObjectrepresents a human being (actual or fictional) within the context of a specific system or application.Generally, an Account object records characteristics of a human user (such as loginName, password, user preferences or access privileges) that are relevant only to (or primarily to) a specific system or application.
-
GROUP
public static final ObjectClass GROUP
Represents a collection that contains an object (such as an account).When an attribute matching this constant is found within a
ConnectorObject, this indicates that theConnectorObjectrepresents a group.
-
ALL
public static final ObjectClass ALL
Represents all collections that contains any object.This constant allowed to use in operation
SyncOp.getLatestSyncToken(ObjectClass)andSyncOp.sync(ObjectClass, SyncToken, SyncResultsHandler, OperationOptions)any other operation throwsUnsupportedOperationException
-
-
Method Detail
-
getObjectClassValue
public java.lang.String getObjectClassValue()
Get the name of the object class. (For example, the name ofACCOUNTis the value defined byACCOUNT_NAME, which is"__ACCOUNT__".)
-
getDisplayNameKey
public java.lang.String getDisplayNameKey()
Convenience method to build the display name key for an object class.- Returns:
- The display name key.
-
is
public boolean is(java.lang.String name)
Determines if the 'name' matches thisObjectClass.- Parameters:
name- case-insensitive string representation of the ObjectClass's type.- Returns:
trueif the case-insensitive name is equal to that of the one in thisObjectClass.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-