Package org.bonitasoft.engine.page
Class IsAdminRule
- java.lang.Object
-
- org.bonitasoft.engine.page.IsAdminRule
-
- All Implemented Interfaces:
AuthorizationRule
public class IsAdminRule extends java.lang.Object implements AuthorizationRule
- Author:
- Emmanuel Duchastenier, Anthony Birembaut
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringPROCESS_DEPLOY_PERMISSION
-
Constructor Summary
Constructors Constructor Description IsAdminRule(SessionAccessor sessionAccessor, SessionService sessionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()protected SSessiongetSession()booleanisAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context)Execute this rule and, according to the context, says whether the rule is valid.
-
-
-
Field Detail
-
PROCESS_DEPLOY_PERMISSION
protected static final java.lang.String PROCESS_DEPLOY_PERMISSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IsAdminRule
public IsAdminRule(SessionAccessor sessionAccessor, SessionService sessionService)
-
-
Method Detail
-
isAllowed
public boolean isAllowed(java.lang.String key, java.util.Map<java.lang.String,java.io.Serializable> context) throws SExecutionExceptionDescription copied from interface:AuthorizationRuleExecute this rule and, according to the context, says whether the rule is valid.- Specified by:
isAllowedin interfaceAuthorizationRule- Parameters:
key- the page mapping keycontext- the information necessary to execute this rule.- Returns:
- true if allowed, false otherwise.If determination cannot be fulfilled, an Exception should be thrown.
- Throws:
SExecutionException- exception thrown if authorization cannot be determined.
-
getSession
protected SSession getSession() throws SSessionNotFoundException, SessionIdNotSetException
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceAuthorizationRule- Returns:
- the identifier for this authorization rule
-
-