public final class Entity
extends Object
Entity represents the user-like object. Specifically, an user, group and department.
This class is used to specify users, groups and organizations for setting the initial values of
an User Selection field, the subject of access controls, and so on.| Constructor and Description |
|---|
Entity(EntityType type,
String code)
Creates a new
Entity instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCode()
The code of the entity the permission is granted to.
|
EntityType |
getType()
The type of the entity: USER, GROUP or ORGANIZATION etc.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"type","code"})
public Entity(EntityType type,
String code)
Entity instance.type - The type of the entity: USER, GROUP or ORGANIZATION etc.code - The code of the entity the permission is granted to.public EntityType getType()
public String getCode()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object