org.guvnor.inbox.backend.server
Class InboxServiceImpl
java.lang.Object
org.guvnor.inbox.backend.server.InboxServiceImpl
- All Implemented Interfaces:
- InboxService
@ApplicationScoped
public class InboxServiceImpl
- extends Object
- implements InboxService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RECENT_EDITED_ID
public static final String RECENT_EDITED_ID
- See Also:
- Constant Field Values
RECENT_VIEWED_ID
public static final String RECENT_VIEWED_ID
- See Also:
- Constant Field Values
INCOMING_ID
public static final String INCOMING_ID
- See Also:
- Constant Field Values
InboxServiceImpl
public InboxServiceImpl()
loadInbox
public org.uberfire.paging.PageResponse<InboxPageRow> loadInbox(InboxPageRequest request)
- Specified by:
loadInbox in interface InboxService
loadEntries
public List<InboxServiceImpl.InboxEntry> loadEntries(String inboxName)
loadRecentEdited
public List<InboxServiceImpl.InboxEntry> loadRecentEdited()
loadRecentEdited
public List<InboxServiceImpl.InboxEntry> loadRecentEdited(String userName)
loadRecentOpened
public List<InboxServiceImpl.InboxEntry> loadRecentOpened()
loadIncoming
public List<InboxServiceImpl.InboxEntry> loadIncoming()
loadIncoming
public List<InboxServiceImpl.InboxEntry> loadIncoming(String userName)
readEntries
public List<InboxServiceImpl.InboxEntry> readEntries(String userName,
String boxName)
recordOpeningEvent
public void recordOpeningEvent(@Observes
org.uberfire.workbench.events.ResourceOpenedEvent event)
recordOpeningEvent
public void recordOpeningEvent(String itemPath,
String itemName)
- Helper method to log the opening. Will remove any inbox items that have
the same id.
recordUserEditEvent
public void recordUserEditEvent(@Observes
org.uberfire.workbench.events.ResourceUpdatedEvent event)
recordUserEditEvent
public void recordUserEditEvent(String itemPath,
String itemName)
- Helper method to note the event
addToRecentEdited
public void addToRecentEdited(String itemPath,
String note)
- This should be called when the user edits or comments on an asset. Simply
adds to the list...
addToRecentOpened
public void addToRecentOpened(String itemPath,
String note)
addToIncoming
public void addToIncoming(String itemPath,
String note,
String userFrom,
String userName)
writeEntries
public void writeEntries(String boxName,
List<InboxServiceImpl.InboxEntry> entries)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.