public abstract class AbstractPageClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected SynchronizeComponent |
_synchronizeComponent
The synchronize helper
|
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
AbstractPageClientSideElement() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
getAllRightPageDescription(Page page)
Get i18n description for all right page
|
protected I18nizableText |
getNoModifiablePageDescription(Page page)
Get the description when page is not modifiable
|
protected I18nizableText |
getNoRightPageDescription(Page page)
Get the description when user has no right on page
|
protected Map<String,Object> |
getPageDefaultParameters(Page page)
Get the default page's parameters
|
protected boolean |
hasRight(Page page)
Determines if user has convenient right on page
|
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 AmetysObjectResolver _resolver
protected SynchronizeComponent _synchronizeComponent
public AbstractPageClientSideElement()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
protected Map<String,Object> getPageDefaultParameters(Page page)
page
- The pageprotected boolean hasRight(Page page)
page
- The pageprotected I18nizableText getNoRightPageDescription(Page page)
page
- the pageprotected I18nizableText getNoModifiablePageDescription(Page page)
page
- the pageprotected I18nizableText getAllRightPageDescription(Page page)
page
- The pageI18nizableText
description