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
_currentUserProvider
The current user providerstatic String
ROLE
Avalon role.
-
Constructor Summary
Constructors Constructor Description ResourceNotifierHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
boolean
resourceRecentlyModified(String resourceId)
Notify the observation manager when a resource is updatedvoid
service(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in 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
-
-