Package org.ametys.odf.schedulable
Class GlobalValidationReport
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.schedulable.GlobalValidationReport
-
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
public class GlobalValidationReport extends AbstractLogEnabled implements Component, Serviceable
The component for scheduling a global validation report on programs
-
-
Field Summary
Fields Modifier and Type Field Description private static String__JOB_KEYprivate static String__SCHEDULABLE_IDprivate DOMParser_domParserprivate Scheduler_schedulerprivate CurrentUserProvider_userProviderprivate XPathProcessor_xPathProcessorstatic StringROLEThe Avalon role
-
Constructor Summary
Constructors Constructor Description GlobalValidationReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>_getAttributes(Node node)List<Map<String,Object>>getInvalidatedContents(String contentId)Get the list of invalidated contents computed by the last report for a given contentbooleanisRunning()Determines if the scheduler is currently runningvoidservice(ServiceManager smanager)Map<String,Object>startReport()Start the global validation report on programs-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__SCHEDULABLE_ID
private static final String __SCHEDULABLE_ID
- See Also:
- Constant Field Values
-
__JOB_KEY
private static final String __JOB_KEY
- See Also:
- Constant Field Values
-
_scheduler
private Scheduler _scheduler
-
_userProvider
private CurrentUserProvider _userProvider
-
_xPathProcessor
private XPathProcessor _xPathProcessor
-
_domParser
private DOMParser _domParser
-
-
Constructor Detail
-
GlobalValidationReport
public GlobalValidationReport()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
isRunning
public boolean isRunning()
Determines if the scheduler is currently running- Returns:
- true if a check is already running
-
startReport
public Map<String,Object> startReport()
Start the global validation report on programs- Returns:
- the result
-
getInvalidatedContents
public List<Map<String,Object>> getInvalidatedContents(String contentId)
Get the list of invalidated contents computed by the last report for a given content- Parameters:
contentId- the content id- Returns:
- the list of invalidated contents
-
_getAttributes
private Map<String,Object> _getAttributes(Node node)
-
-