Interface Wall
@Exported
public interface Wall
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionaddMessage(String message) Add a new message to Message Board of user in context.addMessage(String message, boolean isPrivate) Add a new message to Message Board of user in context.addMessage(String message, String visibilityType, oracle.webcenter.framework.richtext.RichLink link) Add a new message to Message Board of user in context.addMessage(String message, oracle.webcenter.framework.richtext.RichLink link) Add a new message to Message Board of user in context.voiddeleteMessage(String messageId) Delete a particular message from Message Board of user in context.getMessage(String messageId) Returns the Message for a given message Id.getMessages(int startIndex, int fetchSize) Deprecated.getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo) Deprecated.getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo, boolean fetchHidden) Retreive a sorted list of messages on the Message Board with in a given date range.getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo, boolean fetchHidden, String messageType) Retreive a sorted list of messages on the Message Board with in a given date range and visibility.booleanDetermine if new messages can be added or not.booleanDetermine if messages are viewable or not.voidupdateMessage(String messageId, String newMessage) Update a particular message on the Message Board of user in context.voidupdateMessageVisibility(String messageId, String visibilityStr) Hide or Unhide a particular message from Message Board of user in context.
-
Method Details
-
isMessagesViewable
Determine if messages are viewable or not.- Returns:
- true if current logged in user can see the messages of user in context or else false
- Throws:
WallServiceException
-
isAddMessagesAllowed
Determine if new messages can be added or not.- Returns:
- true if current logged in user can add messages to user in context or else false
- Throws:
WallServiceException
-
addMessage
Add a new message to Message Board of user in context.- Parameters:
message- message string- Returns:
- a message object representing newly added message to the Message Board of the user in context.
- Throws:
WallServiceException
-
addMessage
Add a new message to Message Board of user in context.- Parameters:
message- message stringisPrivate- if true, message is marked as private, otherwise public- Returns:
- a message object representing newly added message to the Message Board of the user in context.
- Throws:
WallServiceException
-
addMessage
WallMessage addMessage(String message, oracle.webcenter.framework.richtext.RichLink link) throws WallServiceException Add a new message to Message Board of user in context.- Parameters:
message- message stringlink- the link being published.- Returns:
- a message object representing newly added message to the Message Board of the user in context.
- Throws:
WallServiceException
-
addMessage
WallMessage addMessage(String message, String visibilityType, oracle.webcenter.framework.richtext.RichLink link) throws WallServiceException Add a new message to Message Board of user in context.- Parameters:
message- message stringvisibilityType- visibilityType of the message to be addedlink- the link being published.- Returns:
- a message object representing newly added message to the Message Board of the user in context.
- Throws:
WallServiceException
-
deleteMessage
Delete a particular message from Message Board of user in context.- Parameters:
messageId- ID of the message- Throws:
WallServiceException
-
updateMessage
Update a particular message on the Message Board of user in context.- Parameters:
messageId- ID of the message- Throws:
WallServiceException
-
updateMessageVisibility
Hide or Unhide a particular message from Message Board of user in context.- Parameters:
messageId- ID of the messagevisibilityStr- String literal to toggle hide and unhide- PUBLIC - unhide the message
- PRIVATE - hide the message
- Throws:
WallServiceException
-
getMessage
Returns the Message for a given message Id.- Parameters:
messageId- - the identifier of the message to be returned.- Returns:
- the message object for the given identifier
- Throws:
WallServiceException- thrown if the message is not found or some error encountered by the service.
-
getMessages
Deprecated.Retreive a list of messages on the Message Board of the user in context. Range and count of messages retreived can be controlled by passing in appropriate startIndex and fetchSize parameters.- Parameters:
startIndex- starting index of the items to include in the retreived list.0is the starting index.fetchSize- count of messages to be retreived. Pass-1to retrieve all with out any limit.- Returns:
- list of messages from Message Board of user in context.
- Throws:
WallServiceException
-
getMessages
List<WallMessage> getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo, boolean fetchHidden) throws WallServiceException Retreive a sorted list of messages on the Message Board with in a given date range. Range and count of messages retreived can be controlled by passing in appropriate startIndex and fetchSize parameters.- Parameters:
startIndex- starting index of the items to include in the retreived list.0is the starting index.fetchSize- count of messages to be retreived. Pass-1to retrieve all with out any limit.sortKeyStr- String literal for the sort attribute.- DATE - sort by messages posted date
- USER - sort by user name of the persons who posted on Message Board
dateFrom- retreive message received from this date. Passnullif no start date filtering is needed.dateTo- retreive messages received until this date. Pass (@code null} if no end date filtering is needed.fetchHidden- if true, retrieves the hidden messages also for a given owner. If false, messages hidden by the user are not retrieved.- Returns:
- list of messages from Message Board of user in context.
- Throws:
WallServiceException
-
getMessages
List<WallMessage> getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo) throws WallServiceException Deprecated.Retrieve a sorted list of messages.- Throws:
WallServiceException
-
getMessages
List<WallMessage> getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo, boolean fetchHidden, String messageType) throws WallServiceException Retreive a sorted list of messages on the Message Board with in a given date range and visibility. Range and count of messages retreived can be controlled by passing in appropriate startIndex and fetchSize parameters.- Parameters:
startIndex- starting index of the items to include in the retreived list.0is the starting index.fetchSize- count of messages to be retreived. Pass-1to retrieve all with out any limit.sortKeyStr- String literal for the sort attribute.- DATE - sort by messages posted date
- USER - sort by user name of the persons who posted on Message Board
dateFrom- retreive message received from this date. Passnullif no start date filtering is needed.dateTo- retreive messages received until this date. Pass (@code null} if no end date filtering is needed.fetchHidden- if true, retrieves the hidden messages also for a given owner. If false, messages hidden by the user are not retrieved.messageType- Type of MessageType to be shown.- ALL - all messages.
- PUBLIC - only public messages.
- PRIVATE - only private messages.
- Returns:
- list of messages from Message Board of user in context.
- Throws:
WallServiceException
-
getMessages(int startIndex, int fetchSize, String sortKeyStr, Date dateFrom, Date dateTo)