Package org.ametys.web.clientsideelement
Class AbstractPageClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.web.clientsideelement.AbstractPageClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
AbstractPagesContainerClientSideElement
,ConfigureServiceClientSideElement
,ConfigureViewParametersClientSideElement
,DeletePageClientSideElement
,LivePageClientSideElement
,ScheduledPageClientSideElement
,SetOrganisationChartRootClientSideElement
,SetUGCRootClientSideElement
,SetUserDirectoryRootClientSideElement
public abstract class AbstractPageClientSideElement extends StaticClientSideElement
Abstract client side element for pages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The Ametys object resolverprotected SynchronizeComponent
_synchronizeComponent
The synchronize helper-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description AbstractPageClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected I18nizableText
getAllRightPageDescription(Page page)
Get i18n description for all right pageprotected I18nizableText
getNoModifiablePageDescription(Page page)
Get the description when page is not modifiableprotected I18nizableText
getNoRightPageDescription(Page page)
Get the description when user has no right on pageprotected Map<String,Object>
getPageDefaultParameters(Page page)
Get the default page's parametersprotected boolean
hasRight(Page page)
Determines if user has convenient right on pagevoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_synchronizeComponent
protected SynchronizeComponent _synchronizeComponent
The synchronize helper
-
-
Constructor Detail
-
AbstractPageClientSideElement
public AbstractPageClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getPageDefaultParameters
protected Map<String,Object> getPageDefaultParameters(Page page)
Get the default page's parameters- Parameters:
page
- The page- Returns:
- The default parameters
-
hasRight
protected boolean hasRight(Page page)
Determines if user has convenient right on page- Parameters:
page
- The page- Returns:
- true if the user has convenient right
-
getNoRightPageDescription
protected I18nizableText getNoRightPageDescription(Page page)
Get the description when user has no right on page- Parameters:
page
- the page- Returns:
- the description
-
getNoModifiablePageDescription
protected I18nizableText getNoModifiablePageDescription(Page page)
Get the description when page is not modifiable- Parameters:
page
- the page- Returns:
- the description
-
getAllRightPageDescription
protected I18nizableText getAllRightPageDescription(Page page)
Get i18n description for all right page- Parameters:
page
- The page- Returns:
- The
I18nizableText
description
-
-