|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.Remarks
public class Remarks
Represents a set of comments or discussion thread on a particular topic.
A discussion thread or remarks occurs around a sequence of comments. Each individual comment has a text portion and one or more attachments (usually binary). Each comment maintains the time it was created, the author of the comment and it's contents. A discussion thread maintains the time it was created, the owner/creator and the current list of comments in the thread. The discussion thread is attached to the smart object for which the comments are meant.
Field Summary |
---|
Fields inherited from class com.sas.services.information.metadata.Metadata |
---|
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASH |
Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
---|
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
Constructor Summary | |
---|---|
|
Remarks()
Constructs a default instance. |
protected |
Remarks(java.lang.Class theClass)
Constructs a default instance. |
|
Remarks(DAVRemarks remarks)
Constructs a default instance. |
protected |
Remarks(DAVRemarks remarks,
java.lang.Class theClass)
Constructs a default instance. |
|
Remarks(UserContextInterface user,
java.lang.String topic)
|
Method Summary | |
---|---|
void |
addComment(CommentInterface comment)
Add a comment - as long as user is an allowed participant |
void |
addReferral(java.lang.String entityKey)
Sets the referral, which is the item that refers to this remark. |
void |
clear()
Clear the list of comments - only owner is allowed to do this |
void |
delete()
Override delete to make sure that only the owner can delete the remark. |
CommentInterface |
getComment(CommentFilterInterface filter)
Get a comment that satisfies the filter. |
java.util.List |
getComments(CommentFilterInterface filter)
Get a list of all comments that satisfy the filter. |
java.lang.String |
getOwner()
Gets the owner of the discussion thread |
java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of a property. |
java.util.Set |
getReferrals()
|
java.util.Date |
getStarted()
Returns the date the discussion thread was started |
java.lang.String |
getStarted(java.text.DateFormat df)
Returns the date the discussion thread was started |
java.lang.String |
getThreadId()
Get the thread identifier for this remark |
java.lang.String |
getTopic()
Gets the topic of discussion |
java.lang.String |
getType()
Get the object type. |
void |
setOwner(UserContextInterface owner)
Sets the owner of the discussion thread. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Sets the value of a property |
void |
setThreadId(java.lang.String threadId)
Sets the thread identifier for this remark. |
void |
setTopic(java.lang.String topic)
Sets the topic of discussion. |
void |
update()
Persist any changes to the object back to the repository. |
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
---|
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
Constructor Detail |
---|
public Remarks() throws java.rmi.RemoteException
java.rmi.RemoteException
- if unable to export the remote object.public Remarks(DAVRemarks remarks) throws java.rmi.RemoteException
remarks
- Remarks.
java.rmi.RemoteException
- if unable to export the remote object.protected Remarks(java.lang.Class theClass) throws java.rmi.RemoteException
theClass
- The subclass's class which will be used to determine
appropriate RMI socket factories.
java.rmi.RemoteException
- if unable to export the remote object.protected Remarks(DAVRemarks remarks, java.lang.Class theClass) throws java.rmi.RemoteException
remarks
- Remarks.theClass
- The subclass's class which will be used to determine
appropriate RMI socket factories.
java.rmi.RemoteException
- if unable to export the remote object.public Remarks(UserContextInterface user, java.lang.String topic) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public java.lang.String getType() throws java.rmi.RemoteException
Metadata
getType
in interface MetadataInterface
getType
in class Metadata
java.rmi.RemoteException
- in the event of remote object failurepublic void addComment(CommentInterface comment) throws java.rmi.RemoteException
RemarksInterface
addComment
in interface RemarksInterface
comment
- A comment to add to the discussion thread. The comment may contain attachments
java.rmi.RemoteException
- In the event of remote object failure.public CommentInterface getComment(CommentFilterInterface filter) throws java.rmi.RemoteException
RemarksInterface
getComment
in interface RemarksInterface
filter
- A filter to determine which comment in the discussion thread should be returned.
java.rmi.RemoteException
- In the event of remote object failure.public void setThreadId(java.lang.String threadId) throws java.rmi.RemoteException
RemarksInterface
setThreadId
in interface RemarksInterface
threadId
- Thread identifier for this remark.
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getThreadId()
RemarksInterface
getThreadId
in interface RemarksInterface
public java.util.List getComments(CommentFilterInterface filter) throws java.rmi.RemoteException
RemarksInterface
getComments
in interface RemarksInterface
filter
- A filter to determine which comments in the discussion thread should be returned.
java.rmi.RemoteException
- In the event of remote object failure.public void clear() throws java.rmi.RemoteException
RemarksInterface
clear
in interface RemarksInterface
java.rmi.RemoteException
- In the event of remote object failure.public void delete() throws ServiceException, java.rmi.RemoteException
delete
in interface MetadataInterface
delete
in class Metadata
ServiceException
- in the event of a repository failure.
java.rmi.RemoteException
- in the event of a network failure.public java.lang.String getOwner() throws java.rmi.RemoteException
RemarksInterface
getOwner
in interface RemarksInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getTopic() throws java.rmi.RemoteException
RemarksInterface
getTopic
in interface RemarksInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Date getStarted() throws java.rmi.RemoteException
RemarksInterface
getStarted
in interface RemarksInterface
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getStarted(java.text.DateFormat df) throws java.rmi.RemoteException
RemarksInterface
getStarted
in interface RemarksInterface
df
- A dateformat to apply to the date for formatting
java.rmi.RemoteException
- In the event of remote object failure.public void update() throws ServiceException, java.rmi.RemoteException
Metadata
update
in interface MetadataInterface
update
in class Metadata
ServiceException
- if an error occurs in the repository.
java.rmi.RemoteException
- in the event of remote object failurepublic void setOwner(UserContextInterface owner) throws java.lang.IllegalStateException, java.rmi.RemoteException
RemarksInterface
setOwner
in interface RemarksInterface
owner
- The user context that represents the owner/creator of the discussion thread
java.lang.IllegalStateException
- If the owner is already set
java.rmi.RemoteException
- In the event of remote object failure.public void setTopic(java.lang.String topic) throws java.lang.IllegalStateException, java.rmi.RemoteException
RemarksInterface
setTopic
in interface RemarksInterface
topic
- The topic for this discussion thread
java.lang.IllegalStateException
- If the topic is already set
java.rmi.RemoteException
- In the event of remote object failure.public java.lang.String getProperty(java.lang.String propertyName) throws java.rmi.RemoteException
RemarksInterface
getProperty
in interface RemarksInterface
propertyName
- The name of the property. Use the format "{namespaceURI}name". If the property is not
in any namespace then use either "{}name" or just "name".
java.rmi.RemoteException
- In the event of remote object failure.public void setProperty(java.lang.String propertyName, java.lang.String propertyValue) throws java.rmi.RemoteException
RemarksInterface
setProperty
in interface RemarksInterface
propertyName
- The name of the property. Use the format "{namespaceURI}name". If the property is not
in any namespace then use either "{}name" or just "name".propertyValue
- The value for the property.
java.rmi.RemoteException
- In the event of remote object failure.public void addReferral(java.lang.String entityKey) throws java.rmi.RemoteException
RemarksInterface
addReferral
in interface RemarksInterface
entityKey
- The entityKey of the smart object that refers to this remark.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.Set getReferrals() throws java.rmi.RemoteException
java.rmi.RemoteException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |