Package org.ametys.plugins.frontedition
Class GetServerValuesAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.frontedition.GetServerValuesAction
- All Implemented Interfaces:
Initializable
,Component
,LogEnabled
,Serviceable
,Action
Check if the content can be edited, and return the value
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected ContentTypesHelper
Helper for content typeprotected CurrentUserProvider
The current user providerprotected FileMetadataManager
Our metatadata manager for fileprotected HelpManager
The help manager to get url for each propertyprotected LockContentManager
Lock Content Managerprotected Logger
The loggerprotected RenderingContextHandler
The rendering context handlerprotected AmetysObjectResolver
The ametys object resolverprotected UserHelper
User helperFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) getLanguages
(Request request) list all languages requested by the client in the requestvoid
protected UserIdentity
isContentLocked
(Content content) Check if the content is lockedvoid
service
(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_logger
The logger -
_resolver
The ametys object resolver -
_currentUserProvider
The current user provider -
_renderingContextHandler
The rendering context handler -
_contentTypesHelper
Helper for content type -
_contentHelper
The content helper -
_userHelper
User helper -
_lockContentManager
Lock Content Manager -
_fileMetadataManager
Our metatadata manager for file -
_helpManager
The help manager to get url for each property
-
-
Constructor Details
-
GetServerValuesAction
public GetServerValuesAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
isContentLocked
Check if the content is locked- Parameters:
content
- The content- Returns:
- UserIdentity of the locker, of null if not locked
-
getLanguages
list all languages requested by the client in the request- Parameters:
request
- the request- Returns:
- an ordonned list of all languages requested by the client (or server default locale if none requested by the client)
-