Class RecordsManagementEventServiceImpl
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventServiceImpl
- All Implemented Interfaces:
RecordsManagementEventService
public class RecordsManagementEventServiceImpl
extends Object
implements RecordsManagementEventService
Records management event service implementation
- Author:
- Roy Wetherall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an eventbooleancanCreateEvent(String eventDisplayLabel, String eventName) Indicates whether a particular event can be created.booleancanEditEvent(String eventDisplayLabel, String eventName, String eventType) Indicates whether a particular event can be edited.booleanexistsEvent(String eventName) Indicates whether a particular event exists.booleanexistsEventDisplayLabel(String eventDisplayLabel) Indicates whether a particular event display label exists.Get a records management event given its name.Get the list of available eventsgetEventType(String eventTypeName) Get the records management event typeGet a list of the event typesvoidregisterEventType(RecordsManagementEventType eventType) Register an event typevoidremoveEvent(String eventName) Remove an eventvoidsetContentService(ContentService contentService) Set the content servicevoidsetNodeService(NodeService nodeService) Set the node service
-
Constructor Details
-
RecordsManagementEventServiceImpl
public RecordsManagementEventServiceImpl()
-
-
Method Details
-
setNodeService
Set the node service- Parameters:
nodeService- node service
-
setContentService
Set the content service- Parameters:
contentService- content service
-
registerEventType
Description copied from interface:RecordsManagementEventServiceRegister an event type- Specified by:
registerEventTypein interfaceRecordsManagementEventService- Parameters:
eventType- event type- See Also:
-
getEventTypes
Description copied from interface:RecordsManagementEventServiceGet a list of the event types- Specified by:
getEventTypesin interfaceRecordsManagementEventService- Returns:
- List
list of the event types - See Also:
-
getEvents
Description copied from interface:RecordsManagementEventServiceGet the list of available events- Specified by:
getEventsin interfaceRecordsManagementEventService- Returns:
- List
list of events - See Also:
-
getEvent
Description copied from interface:RecordsManagementEventServiceGet a records management event given its name. Returns null if the event name is not recognised.- Specified by:
getEventin interfaceRecordsManagementEventService- Parameters:
eventName- event name- Returns:
- RecordsManagementEvent event
- See Also:
-
existsEvent
Description copied from interface:RecordsManagementEventServiceIndicates whether a particular event exists. Returns true if it does, false otherwise.- Specified by:
existsEventin interfaceRecordsManagementEventService- Parameters:
eventName- event name- Returns:
- boolean true if event exists, false otherwise
- See Also:
-
existsEventDisplayLabel
Indicates whether a particular event display label exists. Returns true if it does, false otherwise.- Parameters:
eventDisplayLabel- event display label- Returns:
- boolean true if event exists, false otherwise
-
canCreateEvent
Description copied from interface:RecordsManagementEventServiceIndicates whether a particular event can be created. Returns true if it is possible, false otherwise.- Specified by:
canCreateEventin interfaceRecordsManagementEventService- Parameters:
eventDisplayLabel- event display labeleventName- event name- Returns:
- true if the event can be created, false otherwise
- See Also:
-
canEditEvent
Description copied from interface:RecordsManagementEventServiceIndicates whether a particular event can be edited. Returns true if it is possible, false otherwise.- Specified by:
canEditEventin interfaceRecordsManagementEventService- Parameters:
eventDisplayLabel- event display labeleventName- event nameeventType- event type- Returns:
- true if the event can be edited, false otherwise
- See Also:
-
addEvent
public RecordsManagementEvent addEvent(String eventType, String eventName, String eventDisplayLabel) Description copied from interface:RecordsManagementEventServiceAdd an event- Specified by:
addEventin interfaceRecordsManagementEventService- Parameters:
eventType- event typeeventName- event nameeventDisplayLabel- event display label- See Also:
-
removeEvent
Description copied from interface:RecordsManagementEventServiceRemove an event- Specified by:
removeEventin interfaceRecordsManagementEventService- Parameters:
eventName- event name- See Also:
-
getEventType
Description copied from interface:RecordsManagementEventServiceGet the records management event type- Specified by:
getEventTypein interfaceRecordsManagementEventService- Parameters:
eventTypeName- name- Returns:
- RecordsManagementEventType event type
- See Also:
-