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, checkMultipleOrRightsaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, serviceprotected ContentTypeExtensionPoint _contentTypeExtensionPoint
protected RootContentHelper _rootContentHelper
public CreateContentRightCondition()
public void initialize() throws Exception
initialize in interface Initializableinitialize in class CheckRightsConditionExceptionpublic boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
passesCondition in interface com.opensymphony.workflow.ConditionpassesCondition in class CheckRightsConditioncom.opensymphony.workflow.WorkflowExceptionprotected boolean hasRight(UserIdentity user, String right, Object context)
CheckRightsConditionhasRight in class CheckRightsConditionuser - 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 Disposabledispose in class CheckRightsCondition