public class IdOperation extends Object
IdOperation
defines the types of operations
supported on managed identities, and provides static constants for these
operation. Currently defined operations on objects are
IdOperation.READ
,
IdOperation.EDIT
,
IdOperation.CREATE
,
IdOperation.DELETE
and IdOperation.SERVICE
.
The usage of the respective operations are defined along with their
declaration.Constructor and Description |
---|
IdOperation(String operation)
Constructs an IdOperation of type string
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object opObject)
The
equals method compares the current IdOperation with
the IdOperation passed in and returns true if the operations are same. |
String |
getName()
The
getName method returns the name of the IdOperation
in string representaion. |
int |
hashCode()
Returns the hash code of the object
|
String |
toString()
The
toString method returns the same representation of
the current IdOperation. |
public IdOperation(String operation)
public boolean equals(Object opObject)
equals
method 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.public String toString()
toString
method 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".public int hashCode()
public String getName()
getName
method returns the name of the IdOperation
in string representaion. For example if the current IdOperation
is "CREATE" getName will return "create".Copyright © 2010-2018, ForgeRock All Rights Reserved.