|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.sas.services.information.metadata.Metadata
|
+--com.sas.services.information.metadata.Remarks
Represents a set of comments or discussion thread on a particular topic.
| Fields inherited from class com.sas.services.information.metadata.Metadata |
_repository, _repositoryFlag, _repositoryObject, formats, gmtZone, REPOSITORY_DAV, REPOSITORY_LDAP, REPOSITORY_NONE, REPOSITORY_OMR |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
| Constructor Summary | |
|
Remarks()
Constructs a default instance. |
protected |
Remarks(Class theClass)
Constructs a default instance. |
|
Remarks(DAVRemarks remarks)
Constructs a default instance. |
protected |
Remarks(DAVRemarks remarks,
Class theClass)
Constructs a default instance. |
|
Remarks(UserContextInterface user,
String topic)
|
| Method Summary | |
void |
addComment(CommentInterface comment)
Add a comment - as long as user is an allowed participant |
void |
addReferral(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. |
List |
getComments(CommentFilterInterface filter)
Get a list of all comments that satisfy the filter. |
String |
getOwner()
Gets the owner of the discussion thread |
String |
getProperty(String propertyName)
Returns the value of a property. |
Set |
getReferrals()
|
Date |
getStarted()
Returns the date the discussion thread was started |
String |
getStarted(DateFormat df)
Returns the date the discussion thread was started |
String |
getThreadId()
Get the thread identifier for this remark |
String |
getTopic()
Gets the topic of discussion |
String |
getType()
Get the object type. |
void |
setOwner(UserContextInterface owner)
Sets the owner of the discussion thread. |
void |
setProperty(String propertyName,
String propertyValue)
Sets the value of a property |
void |
setThreadId(String threadId)
Sets the thread identifier for this remark. |
void |
setTopic(String topic)
Sets the topic of discussion. |
void |
update()
Persist any changes to the object back to the repository. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Remarks()
throws RemoteException
RemoteException - if unable to export the remote object.
public Remarks(DAVRemarks remarks)
throws RemoteException
remarks - Remarks.RemoteException - if unable to export the remote object.
protected Remarks(Class theClass)
throws RemoteException
theClass - The subclass's class which will be used to determine
appropriate RMI socket factories.RemoteException - if unable to export the remote object.
protected Remarks(DAVRemarks remarks,
Class theClass)
throws RemoteException
remarks - Remarks.theClass - The subclass's class which will be used to determine
appropriate RMI socket factories.RemoteException - if unable to export the remote object.
public Remarks(UserContextInterface user,
String topic)
throws RemoteException
| Method Detail |
public String getType()
throws RemoteException
MetadataInterfacegetType in interface MetadataInterfacegetType in class Metadatacom.sas.services.information.metadata.MetadataInterfaceRemoteException - if an error occurs
public void addComment(CommentInterface comment)
throws RemoteException
RemarksInterfaceaddComment in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacecomment - A comment to add to the discussion thread. The comment may contain attachments
public CommentInterface getComment(CommentFilterInterface filter)
throws RemoteException
RemarksInterfacegetComment in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacefilter - A filter to determine which comment in the discussion thread should be returned.
public void setThreadId(String threadId)
throws RemoteException
RemarksInterfacesetThreadId in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacethreadId - Thread identifier for this remark.public String getThreadId()
RemarksInterfacegetThreadId in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterface
public List getComments(CommentFilterInterface filter)
throws RemoteException
RemarksInterfacegetComments in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacefilter - A filter to determine which comments in the discussion thread should be returned.
public void clear()
throws RemoteException
RemarksInterfaceclear in interface RemarksInterface
public void delete()
throws ServiceException,
RemoteException
delete in interface MetadataInterfacedelete in class Metadatacom.sas.services.information.metadata.MetadataInterfaceServiceException - in the event of a repository failure.RemoteException - in the event of a network failure.
public String getOwner()
throws RemoteException
RemarksInterfacegetOwner in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterface
public String getTopic()
throws RemoteException
RemarksInterfacegetTopic in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterface
public Date getStarted()
throws RemoteException
RemarksInterfacegetStarted in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterface
public String getStarted(DateFormat df)
throws RemoteException
RemarksInterfacegetStarted in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacedf - A dateformat to apply to the date for formatting
public void update()
throws ServiceException,
RemoteException
MetadataInterfaceupdate in interface MetadataInterfaceupdate in class Metadatacom.sas.services.information.metadata.MetadataInterfaceServiceException - if an error occurs in the repository.RemoteException - if an error occurs
public void setOwner(UserContextInterface owner)
throws IllegalStateException,
RemoteException
RemarksInterfacesetOwner in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfaceuser - The user context that represents the owner/creator of the discussion threadIllegalStateException - If the owner is already set
public void setTopic(String topic)
throws IllegalStateException,
RemoteException
RemarksInterfacesetTopic in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacetopic - The topic for this discussion threadIllegalStateException - If the topic is already set
public String getProperty(String propertyName)
throws RemoteException
RemarksInterfacegetProperty in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacepropertyName - 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".
public void setProperty(String propertyName,
String propertyValue)
throws RemoteException
RemarksInterfacesetProperty in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfacepropertyName - 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.
public void addReferral(String entityKey)
throws RemoteException
RemarksInterfaceaddReferral in interface RemarksInterfacecom.sas.services.information.metadata.RemarksInterfaceentityKey - The entityKey of the smart object that refers to this remark.
public Set getReferrals()
throws RemoteException
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||