Class GetEligibleMetadataList
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.odfweb.actions.GetEligibleMetadataList
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetEligibleMetadataList extends ServiceableAction
Action providing the list of eligible enumerated metadata for ODF page level
-
-
Field Summary
Fields Modifier and Type Field Description protected OdfPageHandler
_odfRootHandler
The ODF root page handler.-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetEligibleMetadataList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected Map<String,Object>
getAttributeInfo(Map.Entry<String,ModelItem> attributeEntry)
Generates aMap
with information about the given attribute The returned information are the attribute's name and labelvoid
service(ServiceManager serviceManager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_odfRootHandler
protected OdfPageHandler _odfRootHandler
The ODF root page handler.
-
-
Constructor Detail
-
GetEligibleMetadataList
public GetEligibleMetadataList()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
getAttributeInfo
protected Map<String,Object> getAttributeInfo(Map.Entry<String,ModelItem> attributeEntry)
Generates aMap
with information about the given attribute The returned information are the attribute's name and label- Parameters:
attributeEntry
- The attribute's entry with its path as a key and its definition as a value- Returns:
- a
Map
with the attribute's information
-
-