Class ListReportsAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.odfpilotage.tool.ListReportsAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class ListReportsAction extends ServiceableAction
SAX the last 30 log files
-
-
Field Summary
-
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 ListReportsAction()
-
Method Summary
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_CRITERIA_FILENAME
private static final String _CRITERIA_FILENAME
- See Also:
- Constant Field Values
-
_CRITERIA_LAST_MODIFIED_AFTER
private static final String _CRITERIA_LAST_MODIFIED_AFTER
- See Also:
- Constant Field Values
-
_CRITERIA_LAST_MODIFIED_BEFORE
private static final String _CRITERIA_LAST_MODIFIED_BEFORE
- See Also:
- Constant Field Values
-
_COLUMN_FILENAME
private static final String _COLUMN_FILENAME
- See Also:
- Constant Field Values
-
_COLUMN_LAST_MODIFIED
private static final String _COLUMN_LAST_MODIFIED
- See Also:
- Constant Field Values
-
_COLUMN_LENGTH
private static final String _COLUMN_LENGTH
- See Also:
- Constant Field Values
-
_COLUMN_TYPE
private static final String _COLUMN_TYPE
- See Also:
- Constant Field Values
-
_COLUMN_OUTPUT_FORMAT
private static final String _COLUMN_OUTPUT_FORMAT
- See Also:
- Constant Field Values
-
_COLUMN_CATALOG
private static final String _COLUMN_CATALOG
- See Also:
- Constant Field Values
-
_COLUMN_LANG
private static final String _COLUMN_LANG
- See Also:
- Constant Field Values
-
_COLUMN_TARGET
private static final String _COLUMN_TARGET
- See Also:
- Constant Field Values
-
_COLUMN_CONTEXT
private static final String _COLUMN_CONTEXT
- See Also:
- Constant Field Values
-
_NAME_TO_COMPARATOR
private static final Map<String,Comparator<File>> _NAME_TO_COMPARATOR
-
_serverCommHelper
protected ServerCommHelper _serverCommHelper
ServerComm Helper
-
_jsonUtils
protected JSONUtils _jsonUtils
JSON Utils
-
_pilotageLogFileManager
protected PilotageLogFileManager _pilotageLogFileManager
Pilotage log file manager
-
_pilotageHelper
protected PilotageHelper _pilotageHelper
Pilotage helper
-
_resolver
protected AmetysObjectResolver _resolver
Ametys object resolver
-
_reportEP
protected ReportExtensionPoint _reportEP
The report extension point
-
_languageManager
protected LanguagesManager _languageManager
The language manager
-
_catalogManager
protected CatalogsManager _catalogManager
The catalog manager
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
-
Constructor Detail
-
ListReportsAction
public ListReportsAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) 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
-
_getIntValue
private int _getIntValue(Map<String,Object> values, String key, int defaultValue)
-
_getReportFiles
private File[] _getReportFiles(Map<String,Object> parameters)
-
_getZonedDateTimeFromParameters
private ZonedDateTime _getZonedDateTimeFromParameters(Map<String,Object> parameters, String parameterName)
-
_getReportResults
private List<Map<String,Object>> _getReportResults(File[] reportFiles, Integer offset, Integer limit, List<Object> sort) throws ProcessingException
- Throws:
ProcessingException
-
_parseManifest
private Map<String,Object> _parseManifest(File reportFile)
-
_getReportTypeInfos
private Map<String,Object> _getReportTypeInfos(String typeId)
-
_getContentInfos
private Map<String,Object> _getContentInfos(String contentId)
-
_getCatalogInfos
private Map<String,Object> _getCatalogInfos(String name)
-
_getLanguageInfos
private Map<String,Object> _getLanguageInfos(String lang)
-
_getLogsFiles
private File[] _getLogsFiles(String filename)
Get the logs files- Parameters:
filename
- Name of the file to retrieve a log- Returns:
- the logs files
-
_getSortList
private List<Object> _getSortList(Object sortValues)
-
_sortFiles
private File[] _sortFiles(File[] files, List<Object> sortList)
-
-