public class RequestEntity
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE_ENTITY_TYPE
A constant for Role entity-type.
|
static java.lang.String |
USER_ENTITY_TYPE
A constant for User entity-type.
|
Constructor and Description |
---|
RequestEntity()
Constructs RequestEntity object with default construct
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getAdditionalEntityData()
Gets the additional data associated with this RequestEntity
|
java.util.List |
getEntityData()
Gets the request data associated with this RequestEntity.
|
java.lang.String |
getEntityKey()
Gets the associated entity key set for this object.
|
java.lang.String |
getEntitySubType()
Gets Role name in case of Role based request type, otherwise null.
|
java.lang.String |
getEntityType()
Deprecated.
|
java.lang.String |
getOperation() |
RequestEntityAttribute |
getRequestEntityAttribute(java.lang.String attributeName)
Gets a list of entity attributes from the request data.
|
OIMType |
getRequestEntityType()
Returns the enum equivalent of request entity type i.e User/Role/Resource
|
void |
setAdditionalEntityData(java.util.List additionalAttributes)
Set additional data specific to the entity
|
void |
setEntityData(java.util.List entityAttributes)
Sets the Request data for this RequestEntity.
|
void |
setEntityKey(java.lang.String entityKey)
Sets the entity key for this RequestEntity.
|
void |
setEntitySubType(java.lang.String entitySubType)
Sets entity name associated with the entity.Only in case of Role based request type,set this value to Role name.
|
void |
setEntityType(java.lang.String entityType)
Deprecated.
use the setEntityType method with OIMType as input parameter. This method will be replaced with
setRequestEntityType |
void |
setOperation(java.lang.String operation) |
void |
setRequestEntityType(OIMType entityType)
Sets the request entity type i.e User/Role/Resource from the given OIMType
|
public static final java.lang.String USER_ENTITY_TYPE
public static final java.lang.String ROLE_ENTITY_TYPE
public RequestEntity()
@Deprecated public void setEntityType(java.lang.String entityType)
setRequestEntityType
entityType
- Request entity type.@Deprecated public java.lang.String getEntityType()
public void setRequestEntityType(OIMType entityType)
entityType
- Request entity type. Enums defined in the OIMTypepublic OIMType getRequestEntityType()
public void setEntityData(java.util.List entityAttributes)
entityAttributes
- List of entity attributes objects. Each attribute defined needs to be a valid attribute defined in dataset for the request type
and its data-value based on data-type.public java.util.List getEntityData()
public java.lang.String getEntitySubType()
public void setEntitySubType(java.lang.String entitySubType)
entitySubType
- Role name incase of Role based request type.public java.lang.String getEntityKey()
public void setEntityKey(java.lang.String entityKey)
entityKey
- usr_key for User and ugp_key for Role entity, when request type is of non-create type.public RequestEntityAttribute getRequestEntityAttribute(java.lang.String attributeName)
attributeName
- Attribute name based on dataset attribute name .public void setOperation(java.lang.String operation)
public java.lang.String getOperation()
public void setAdditionalEntityData(java.util.List additionalAttributes)
additionalAttributes
- - additional data to be added to the entitypublic java.util.List getAdditionalEntityData()