public class CreateContentRightCondition extends CheckRightsCondition
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_contentTypeExtensionPoint
Content type extension point.
|
protected RootContentHelper |
_rootContentHelper
Helper for root content
|
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _rightManager, FORCE
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
CreateContentRightCondition() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected Set<String> |
getRights(Map transientVars)
Get the needed right for creation
|
protected boolean |
hasRight(UserIdentity user,
String right,
Object context)
Test if a user has a right on a context.
|
void |
initialize() |
boolean |
passesCondition(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
_checkRights, _computeContext, checkMultipleAndRights, checkMultipleOrRights
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
protected ContentTypeExtensionPoint _contentTypeExtensionPoint
protected RootContentHelper _rootContentHelper
public CreateContentRightCondition()
public void initialize() throws Exception
initialize
in interface Initializable
initialize
in class CheckRightsCondition
Exception
public boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
passesCondition
in interface com.opensymphony.workflow.Condition
passesCondition
in class CheckRightsCondition
com.opensymphony.workflow.WorkflowException
protected boolean hasRight(UserIdentity user, String right, Object context)
CheckRightsCondition
hasRight
in class CheckRightsCondition
user
- the userright
- the right to check.context
- the right context.protected Set<String> getRights(Map transientVars) throws com.opensymphony.workflow.WorkflowException
transientVars
- variables that will not be persisted.com.opensymphony.workflow.WorkflowException
- If an error occuredpublic void dispose()
dispose
in interface Disposable
dispose
in class CheckRightsCondition