E
- data object the security manager applies topublic abstract class ActionObjectStateSecurityManager<E extends DataObject<E> & LifecycleInterface<E,?>> extends ActionObjectSecurityManager<E>
Constructor and Description |
---|
ActionObjectStateSecurityManager(java.lang.String authority,
java.lang.String[] states) |
Modifier and Type | Method and Description |
---|---|
void |
freezeUnauthorizedObjects(DataObject<?>[] dataarray,
SecurityBuffer buffer)
this method will look at an array of objects, and unfreeze all authorized
objects.
|
abstract E[] |
getInputObject(SActionData input,
SecurityBuffer buffer) |
java.util.function.Function<TableAlias,QueryFilter> |
getOutputFilterCondition() |
boolean |
isAuthorizedForCurrentUser(java.lang.String context,
E object)
this method allows to check if an object is valid or not depending on the
context
|
boolean |
isMaybeAuthorized()
this method should return true if there is a possibility that the user has
the privilege for some objects.
|
boolean |
isObjectAuthorized(E object)
function to be implemented by the specific security manager, telling if an
object is valid or not
|
java.lang.String |
toString() |
isAuthorizedForCurrentUser
buildListSummary, buildListSummary, buildListSummary, filterObjectData, queryObjectData
public ActionObjectStateSecurityManager(java.lang.String authority, java.lang.String[] states)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract E[] getInputObject(SActionData input, SecurityBuffer buffer)
getInputObject
in class ActionObjectSecurityManager<E extends DataObject<E> & LifecycleInterface<E,?>>
input
- input action databuffer
- security buffer (should be used as much as possibl)epublic boolean isObjectAuthorized(E object)
ActionObjectSecurityManager
isObjectAuthorized
in class ActionObjectSecurityManager<E extends DataObject<E> & LifecycleInterface<E,?>>
object
- the objectpublic boolean isMaybeAuthorized()
ActionObjectSecurityManager
isMaybeAuthorized
in class ActionObjectSecurityManager<E extends DataObject<E> & LifecycleInterface<E,?>>
public java.util.function.Function<TableAlias,QueryFilter> getOutputFilterCondition()
getOutputFilterCondition
in class ActionSecurityManager
public void freezeUnauthorizedObjects(DataObject<?>[] dataarray, SecurityBuffer buffer)
ActionSecurityManager
freezeUnauthorizedObjects
in class ActionSecurityManager
dataarray
- the array of objects;public boolean isAuthorizedForCurrentUser(java.lang.String context, E object)
ActionObjectSecurityManager
isAuthorizedForCurrentUser
in class ActionObjectSecurityManager<E extends DataObject<E> & LifecycleInterface<E,?>>
context
- any context useful for the specific logicobject
- the object