|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.fatwire.services.beans.BaseBean
com.fatwire.services.beans.asset.PermissionBean<T>
T
- type of the entity encapsulated into the ServiceBean
.public class PermissionBean<T>
The PermissionBean is the value object for authorization modules which determine permission for performing operations on an asset. It provides the following information:
ServiceBean
, Serialized FormConstructor Summary | |
---|---|
PermissionBean() |
Method Summary | |
---|---|
void |
addMessage(java.lang.String message) Adds a descriptive message. |
void |
addMessages(java.util.Collection<java.lang.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. |
java.util.List<java.lang.String> |
getMessages() Returns a list of messages. |
java.lang.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(java.lang.Boolean permitted) Sets authorized permission for an operation in the context of an asset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PermissionBean()
Method Detail |
---|
public AssetId getAsset()
public void setAsset(AssetId asset)
asset
- the asset identifier to set.public final java.lang.Boolean isPermitted()
true
if an asset operation is authorized for an asset.true
if an asset operation is authorized for an asset.public final void setPermitted(java.lang.Boolean permitted)
true
if permission is granted.permitted
- permission flag to set. Set to true
if permission is granted.public void setEntity(T entity)
Sets the entity associated with this permission.
Typically the entity is used to hold extra information specific to the service in which it is used.entity
- the entity to set into the permission.public T getEntity()
Returns the entity associated with this permission.
Typically the entity is used to hold extra information specific to the service in which it is used.public void addMessage(java.lang.String message)
message
- the message to add.public java.util.List<java.lang.String> getMessages()
public void addMessages(java.util.Collection<java.lang.String> messages)
messages
- the messages to add.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.