Class ObjectClass
ObjectClass specifies a category or type
of ConnectorObject. This class predefines some common object-classes,
such as ACCOUNT and GROUP.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectClassRepresents a human being in the context of a specific system or application.static final StringThis constant defines a specific value of ObjectClass that is reserved forACCOUNT.static final ObjectClassRepresents all collections that contains any object.static final StringThis constant defines a specific value of ObjectClass that is reserved forALL.static final ObjectClassRepresents a collection that contains an object (such as an account).static final StringThis constant defines a specific value of ObjectClass that is reserved forGROUP. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConvenience method to build the display name key for an object class.Get the name of the object class.inthashCode()booleanDetermines if the 'name' matches thisObjectClass.toString()
-
Field Details
-
ACCOUNT_NAME
This constant defines a specific value of ObjectClass that is reserved forACCOUNT. -
GROUP_NAME
This constant defines a specific value of ObjectClass that is reserved forGROUP. -
ALL_NAME
This constant defines a specific value of ObjectClass that is reserved forALL. -
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
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
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
-
-
Constructor Details
-
ObjectClass
Create a custom object class.- Parameters:
type- string representation for the name of the object class.
-
-
Method Details
-
getObjectClassValue
Get the name of the object class. (For example, the name ofACCOUNTis the value defined byACCOUNT_NAME, which is"__ACCOUNT__".) -
getDisplayNameKey
Convenience method to build the display name key for an object class.- Returns:
- The display name key.
-
is
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() -
equals
-
toString
-