Guvnor - Inbox Backend 6.0.0.Beta4

org.guvnor.inbox.backend.server
Class InboxServiceImpl

java.lang.Object
  extended by org.guvnor.inbox.backend.server.InboxServiceImpl
All Implemented Interfaces:
InboxService

@ApplicationScoped
public class InboxServiceImpl
extends Object
implements InboxService


Nested Class Summary
static class InboxServiceImpl.InboxEntry
          And entry in an inbox.
 
Field Summary
static String INCOMING_ID
           
static String RECENT_EDITED_ID
           
static String RECENT_VIEWED_ID
           
 
Constructor Summary
InboxServiceImpl()
           
 
Method Summary
 void addToIncoming(String itemPath, String note, String userFrom, String userName)
           
 void addToRecentEdited(String itemPath, String note)
          This should be called when the user edits or comments on an asset.
 void addToRecentOpened(String itemPath, String note)
           
 List<InboxServiceImpl.InboxEntry> loadEntries(String inboxName)
           
 org.uberfire.paging.PageResponse<InboxPageRow> loadInbox(InboxPageRequest request)
           
 List<InboxServiceImpl.InboxEntry> loadIncoming()
           
 List<InboxServiceImpl.InboxEntry> loadIncoming(String userName)
           
 List<InboxServiceImpl.InboxEntry> loadRecentEdited()
           
 List<InboxServiceImpl.InboxEntry> loadRecentEdited(String userName)
           
 List<InboxServiceImpl.InboxEntry> loadRecentOpened()
           
 List<InboxServiceImpl.InboxEntry> readEntries(String userName, String boxName)
           
 void recordOpeningEvent(org.uberfire.workbench.events.ResourceOpenedEvent event)
           
 void recordOpeningEvent(String itemPath, String itemName)
          Helper method to log the opening.
 void recordUserEditEvent(org.uberfire.workbench.events.ResourceUpdatedEvent event)
           
 void recordUserEditEvent(String itemPath, String itemName)
          Helper method to note the event
 void writeEntries(String boxName, List<InboxServiceImpl.InboxEntry> entries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

InboxServiceImpl

public InboxServiceImpl()
Method Detail

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)

Guvnor - Inbox Backend 6.0.0.Beta4

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.