Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.activitystreaming
Interface ActivityObject


public interface ActivityObject

Object represents anything that is used or acted by the operation.


Method Summary
 CommentsSummary getCommentsSummary()
          Returns a summary of comments that have been posted on the object
 java.util.Date getCreateDate()
          Return the create date of the object
 java.lang.String getCreatedBy()
          Return the creator (user guid) of the object
 java.lang.String getDescription()
          Return the description of the object
 java.lang.String getDisplayKey()
          Return the display key of the object
 java.lang.String getDisplayName()
          Returns the Object's display name
 java.lang.String getIconURL()
          Return the icon URL.
 java.lang.String getId()
          Return the Object's ID
 LikesSummary getLikesSummary()
          Returns a summary of likes that have been posted on the object
 java.lang.String getModifiedBy()
          Return the last user (user guid) who modifies the object
 java.util.Date getModifiedDate()
          Return the modified date of the object
 java.lang.String getServiceID()
          Return the object's service ID.
 java.lang.String getStatus()
          Return the status of the object (for example, 'DELETE' if the object has been deeleted)
 oracle.webcenter.framework.service.ServiceObjectType getType()
          Returns the object type
 java.lang.String getTypeDisplayName()
          Return the object type display name
 boolean isCommentingAllowed()
          Returns whether commenting is supported on this object, if commenting has been enabled in the system.
 boolean isLikingAllowed()
          Returns whether liking is supported on this object, if liking has been enabled in the system.
 void setCreateDate(java.util.Date createDate)
          Set the create date of the object
 void setCreatedBy(java.lang.String createdBy)
          Set the creator (user guid) of the object
 void setDescription(java.lang.String description)
          Set the description of the object
 void setDisplayKey(java.lang.String displayKey)
          Set the display key of the object
 void setIconURL(java.lang.String iconURL)
          Set the Icon URL
 void setModifiedBy(java.lang.String modifiedBy)
          Set the last user (user guid) who modifies the object
 void setModifiedDate(java.util.Date createDate)
          Set the modified date of the object
 void setServiceID(java.lang.String serviceID)
          Set the object's Service ID

 

Method Detail

getDisplayName

java.lang.String getDisplayName()
Returns the Object's display name
Returns:
the Object's display name

getId

java.lang.String getId()
Return the Object's ID
Returns:
the Object's ID

getType

oracle.webcenter.framework.service.ServiceObjectType getType()
                                                             throws ActivityException
Returns the object type
Returns:
the object type
Throws:
ActivityException - if any problem occurs determining the object type

getTypeDisplayName

java.lang.String getTypeDisplayName()
Return the object type display name
Returns:
the object type display name

getServiceID

java.lang.String getServiceID()
Return the object's service ID. If service ID has not been set, then will return the object's Activity Element's service ID
Returns:
the object service ID

setServiceID

void setServiceID(java.lang.String serviceID)
Set the object's Service ID

setIconURL

void setIconURL(java.lang.String iconURL)
Set the Icon URL
Parameters:
iconURL - the new value of icon URL

getIconURL

java.lang.String getIconURL()
Return the icon URL.
Returns:
the icon URL.

getStatus

java.lang.String getStatus()
Return the status of the object (for example, 'DELETE' if the object has been deeleted)
Returns:
status of the object

getDisplayKey

java.lang.String getDisplayKey()
Return the display key of the object
Returns:
display key of the object

setDisplayKey

void setDisplayKey(java.lang.String displayKey)
Set the display key of the object
Parameters:
displayKey - the display key of the object

getDescription

java.lang.String getDescription()
Return the description of the object
Returns:
description of the object

setDescription

void setDescription(java.lang.String description)
Set the description of the object
Parameters:
description - the description of the object

getCreateDate

java.util.Date getCreateDate()
Return the create date of the object
Returns:
create date of the object

setCreateDate

void setCreateDate(java.util.Date createDate)
Set the create date of the object
Parameters:
createDate - the create date of the object

getModifiedDate

java.util.Date getModifiedDate()
Return the modified date of the object
Returns:
modified of the object

setModifiedDate

void setModifiedDate(java.util.Date createDate)
Set the modified date of the object
Parameters:
createDate - the modified date of the object

getCreatedBy

java.lang.String getCreatedBy()
Return the creator (user guid) of the object
Returns:
creator of the object

setCreatedBy

void setCreatedBy(java.lang.String createdBy)
Set the creator (user guid) of the object
Parameters:
createdBy - the creator of the object

getModifiedBy

java.lang.String getModifiedBy()
Return the last user (user guid) who modifies the object
Returns:
last user who modifies the object

setModifiedBy

void setModifiedBy(java.lang.String modifiedBy)
Set the last user (user guid) who modifies the object
Parameters:
modifiedBy - the last use who modifies the object

getCommentsSummary

CommentsSummary getCommentsSummary()
Returns a summary of comments that have been posted on the object
Returns:
Summary of comments that have been posted on the object

getLikesSummary

LikesSummary getLikesSummary()
Returns a summary of likes that have been posted on the object
Returns:
Summary of likes that have been posted on the object

isCommentingAllowed

boolean isCommentingAllowed()
Returns whether commenting is supported on this object, if commenting has been enabled in the system.

The current implementation returns true if the object has not been marked as deleted and the service to which the object belongs has an activity-type defined with the name 'postComment', and false otherwise.

Returns:
true if commenting is supported on this object when commenting is enabled in the system, false otherwise.

isLikingAllowed

boolean isLikingAllowed()
Returns whether liking is supported on this object, if liking has been enabled in the system.

The current implementation returns true if the object has not been marked as deleted and the service to which the object belongs has an activity-type defined with the name 'expressLike', and false otherwise.

Returns:
true if liking is supported on this object when liking is enabled in the system, false otherwise.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.