Class ResourceNotifierHelper
- java.lang.Object
-
- org.ametys.plugins.workspaces.project.notification.ResourceNotifierHelper
-
- All Implemented Interfaces:
Initializable,Component,Serviceable
public class ResourceNotifierHelper extends Object implements Serviceable, Component, Initializable
Notification helper for the Webdav actions
-
-
Field Summary
Fields Modifier and Type Field Description protected CurrentUserProvider_currentUserProviderThe current user providerstatic StringROLEAvalon role.
-
Constructor Summary
Constructors Constructor Description ResourceNotifierHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()booleanresourceRecentlyModified(String resourceId)Notify the observation manager when a resource is updatedvoidservice(ServiceManager manager)
-
-
-
Field Detail
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider
-
-
Constructor Detail
-
ResourceNotifierHelper
public ResourceNotifierHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
resourceRecentlyModified
public boolean resourceRecentlyModified(String resourceId)
Notify the observation manager when a resource is updated- Parameters:
resourceId- The resource updated- Returns:
- True if the resource was recently modified
-
-