T - type of the entity encapsulated into the link ServiceBean.
see ServiceBean@Exported public class PermissionBean<T> extends BaseBean
| Constructor and Description |
|---|
PermissionBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message)
Adds a descriptive message.
|
void |
addMessages(Collection<String> messages)
Adds a collection of descriptive messages.
|
AssetId |
getAsset()
Returns the asset identifier associated with the asset on which the
permission is checked.
|
T |
getEntity()
Returns the entity associated with this permission.
|
String |
getMessage() |
List<String> |
getMessages()
Returns a list of messages.
|
Boolean |
isPermitted()
Returns true if an asset operation is authorized for an
asset.
|
void |
setAsset(AssetId asset)
Sets the asset identifier associated with the asset on which the
permission is checked.
|
void |
setEntity(T entity)
Sets the entity associated with this permission.
|
void |
setPermitted(Boolean permitted)
Sets authorized permission for an operation in the context of an asset.
|
public AssetId getAsset()
public void setAsset(AssetId asset)
asset - the asset identifier to set.public final Boolean isPermitted()
public final void setPermitted(Boolean permitted)
permitted - permission flag to set. Set to true if permission is granted.public void setEntity(T entity)
entity - the entity to set into the permission.public T getEntity()
public void addMessage(String message)
message - the message to add.public List<String> getMessages()
public String getMessage()
public void addMessages(Collection<String> messages)
messages - the messages to add.