public class SocialDocumentAdapter extends Object implements SocialDocument
SocialDocument.| Constructor and Description |
|---|
SocialDocumentAdapter(DocumentModel sourceDocument) |
| Modifier and Type | Method and Description |
|---|---|
DocumentModel |
getPublicDocument()
Return the public proxy of the source document if the source document is public else return null.
|
DocumentModel |
getRestrictedDocument()
If source document is not an Article return the private proxy of the source document if the source document is
private else return null If is the source document is an Article return the source document if private else
return null.
|
String |
getType() |
boolean |
isDocumentInSocialWorkspace()
Returns
true if this document is inside a SocialWorkspace , false otherwise. |
boolean |
isPublic()
Returns
true if this document is public, false otherwise. |
boolean |
isRestrictedToMembers()
Returns
true if this document is restricted to a SocialWorkspace members, false
otherwise. |
DocumentModel |
makePublic()
Make this document public.
|
DocumentModel |
restrictToMembers()
Make this document restricted to a
SocialWorkspace members. |
public SocialDocumentAdapter(DocumentModel sourceDocument) throws ClientException
sourceDocument - on which social publications need to be performedClientExceptionpublic DocumentModel restrictToMembers() throws ClientException
SocialDocumentSocialWorkspace members.restrictToMembers in interface SocialDocumentClientExceptionpublic DocumentModel makePublic() throws ClientException
SocialDocumentSocialWorkspace.makePublic in interface SocialDocumentClientExceptionpublic DocumentModel getPublicDocument() throws ClientException
SocialDocumentgetPublicDocument in interface SocialDocumentClientExceptionpublic boolean isPublic()
throws ClientException
SocialDocumenttrue if this document is public, false otherwise.isPublic in interface SocialDocumentClientExceptionpublic DocumentModel getRestrictedDocument() throws ClientException
SocialDocumentgetRestrictedDocument in interface SocialDocumentClientExceptionpublic boolean isRestrictedToMembers()
throws ClientException
SocialDocumenttrue if this document is restricted to a SocialWorkspace members, false
otherwise.isRestrictedToMembers in interface SocialDocumentClientExceptionpublic boolean isDocumentInSocialWorkspace()
SocialDocumenttrue if this document is inside a SocialWorkspace , false otherwise.isDocumentInSocialWorkspace in interface SocialDocumentpublic String getType()
getType in interface SocialDocumentCopyright © 2015 Nuxeo SA. All rights reserved.