public abstract class AbstractContentClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected UserManager |
_userManager
Runtime users manager
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
AbstractContentClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
getAllRightContentDescription(Content content)
Get i18n description for all right content
|
protected Map<String,Object> |
getContentDefaultParameters(Content content)
Get the default content's parameters
|
protected I18nizableText |
getLockedContentDescription(Content content)
Get the description when content is locked
|
protected I18nizableText |
getNoModifiableContentDescription(Content content)
Get the description when content is not modifiable
|
protected I18nizableText |
getNoRightContentDescription(Content content)
Get the description when user has no right on content
|
protected boolean |
hasRight(Content content)
Determines if user has convenient right on content
|
protected boolean |
isLocked(Content content)
Determines if a content is locked
|
void |
service(ServiceManager smanager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected UserManager _userManager
public AbstractContentClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
protected Map<String,Object> getContentDefaultParameters(Content content)
content
- The contentprotected I18nizableText getNoRightContentDescription(Content content)
content
- the contentprotected I18nizableText getNoModifiableContentDescription(Content content)
content
- the contentprotected I18nizableText getLockedContentDescription(Content content)
content
- the contentprotected I18nizableText getAllRightContentDescription(Content content)
content
- The contentI18nizableText
descriptionprotected boolean isLocked(Content content)
content
- the content