public class SmartContentClientSideElementHelper extends Object implements Serviceable, Component
SmartContentClientSideElement
Modifier and Type | Field and Description |
---|---|
private ContentHelper |
_contentHelper |
private RightManager |
_rightManager |
private UserManager |
_userManager |
private CurrentUserProvider |
_userProvider |
private WorkflowProvider |
_workflowProvider |
static String |
ROLE
The Avalon Role
|
Constructor and Description |
---|
SmartContentClientSideElementHelper() |
Modifier and Type | Method and Description |
---|---|
I18nizableText |
getAllRightDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can do action
|
Map<String,Object> |
getContentDefaultParameters(Content content)
Get the default content's parameters
|
I18nizableText |
getIncorrectWorkflowStepDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can not do action because the workflow step is incorrect
|
I18nizableText |
getLockedDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can not do action because the content is locked
|
I18nizableText |
getNoModifiableDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can not do action because the content is not modifiable
|
I18nizableText |
getNoRightDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can not do action because he has no right on content
|
I18nizableText |
getWorkflowActionUnvailableDescription(Map<String,Object> parameters,
Content content)
Get i18n description when user can not do action because there is no workflow action unvailable
|
boolean |
hasRight(Map<String,String> rights,
Content content)
Determines if the user has sufficient right for the given content
|
boolean |
isLocked(Content content)
Determines if the content is locked
|
boolean |
isModifiable(Content content)
Determines if the content is modifiable
|
boolean |
isWorkflowStepCorrect(Map<String,Object> parameters,
Content content)
Determines if the workflow step is correct
|
void |
service(ServiceManager manager) |
int |
workflowAction(Map<String,Object> parameters,
Content content)
Determines if the workflow action is correct
|
private UserManager _userManager
private WorkflowProvider _workflowProvider
private CurrentUserProvider _userProvider
private RightManager _rightManager
private ContentHelper _contentHelper
public SmartContentClientSideElementHelper()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean isWorkflowStepCorrect(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- the contentpublic I18nizableText getNoRightDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic I18nizableText getLockedDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic I18nizableText getWorkflowActionUnvailableDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic I18nizableText getIncorrectWorkflowStepDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic I18nizableText getNoModifiableDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic I18nizableText getAllRightDescription(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- The contentI18nizableText
descriptionpublic boolean isLocked(Content content)
content
- the contentpublic boolean isModifiable(Content content)
content
- the contentpublic boolean hasRight(Map<String,String> rights, Content content)
rights
- The client side element 's rightscontent
- the contentpublic int workflowAction(Map<String,Object> parameters, Content content)
parameters
- The client side element 's parameterscontent
- the contentpublic Map<String,Object> getContentDefaultParameters(Content content)
content
- The content