Package com.sun.identity.idm
Class IdOperation
- java.lang.Object
-
- com.sun.identity.idm.IdOperation
-
@SupportedAll public class IdOperation extends Object
The classIdOperationdefines the types of operations supported on managed identities, and provides static constants for these operation. Currently defined operations on objects areIdOperation.READ,IdOperation.EDIT,IdOperation.CREATE,IdOperation.DELETEandIdOperation.SERVICE. The usage of the respective operations are defined along with their declaration.
-
-
Field Summary
Fields Modifier and Type Field Description static IdOperationCREATETheCREATEoperation is supported only for the plugins configured for creating identities.static IdOperationDELETETheDELETEoperation is supported only for the plugins configured for creating identities.static IdOperationEDITTheEDIToperation is supported only for the plugins configured for modifying and deleting attributes from the supported identities.static IdOperationREADTheREADoperation is supported by default for all supported identities for all the plugins.static IdOperationSERVICETheSERVICEoperation is supported only for service related functions on an identity.
-
Constructor Summary
Constructors Constructor Description IdOperation(String operation)Constructs an IdOperation of type string
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object opObject)Theequalsmethod compares the current IdOperation with the IdOperation passed in and returns true if the operations are same.StringgetName()ThegetNamemethod returns the name of the IdOperation in string representaion.inthashCode()Returns the hash code of the objectStringtoString()ThetoStringmethod returns the same representation of the current IdOperation.
-
-
-
Field Detail
-
READ
public static final IdOperation READ
TheREADoperation is supported by default for all supported identities for all the plugins. This operation means that theIdRepo SPIfor the configured plugins related to reading identity attributes will be invoked.
-
EDIT
public static final IdOperation EDIT
TheEDIToperation is supported only for the plugins configured for modifying and deleting attributes from the supported identities. This means that theIdRepo SPIfor the configured plugins will be called for all modify attribute operations.
-
CREATE
public static final IdOperation CREATE
TheCREATEoperation is supported only for the plugins configured for creating identities. Not all the configured identities for a givenIdRepo pluginmight be supported. It is possible that a plugin might support read operations on allIdTypebut create operations only on theIdType.USER. In this case the create operation for that plugin is only called for user identities.
-
DELETE
public static final IdOperation DELETE
TheDELETEoperation is supported only for the plugins configured for creating identities. Not all the configured identities for a givenIdRepo pluginmight be supported. It is possible that a plugin might support read operations on allIdTypebut create or delete operations only on theIdType.USER. In this case the delete operation for that plugin is only called for user identities.
-
SERVICE
public static final IdOperation SERVICE
TheSERVICEoperation is supported only for service related functions on an identity. Not all the configured identities for a plugin might support services for all identities. It is possible that service operations are supported only for one identity type for a plugin, sayIdType.USER. In this case, all service related operations like assignService, unassignService, modifyService etc. are only called for user objects for that plugin.
-
-
Constructor Detail
-
IdOperation
public IdOperation(String operation)
Constructs an IdOperation of type string
-
-
Method Detail
-
equals
public boolean equals(Object opObject)
Theequalsmethod compares the current IdOperation with the IdOperation passed in and returns true if the operations are same. it will return false if the operations are different.
-
toString
public String toString()
ThetoStringmethod returns the same representation of the current IdOperation. The string returned is preceeded by the the substring "Operation: ". For example: if the current IdOperation is "CREATE" toString will return "Operation: create".
-
hashCode
public int hashCode()
Returns the hash code of the object
-
getName
public String getName()
ThegetNamemethod returns the name of the IdOperation in string representaion. For example if the current IdOperation is "CREATE" getName will return "create".- Returns:
- String name of IdOperation.
-
-