public class CommonsManagerImpl extends Object implements CommonsManager, Observer
ENTITY_PREFIX, POST_CACHE, REFERENCE_ROOT| Constructor and Description |
|---|
CommonsManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
archive(String siteId,
Document doc,
Stack stack,
String archivePath,
List attachments) |
boolean |
deleteComment(String siteId,
String commonsId,
String embedder,
String commentId,
String commentCreatorId,
String postCreatorId) |
boolean |
deletePost(String postId) |
boolean |
entityExists(String id) |
Entity |
getEntity(Reference ref)
From EntityProducer
|
Collection |
getEntityAuthzGroups(Reference ref,
String userId)
From EntityProducer
|
String |
getEntityDescription(Reference arg0) |
String |
getEntityPrefix() |
ResourceProperties |
getEntityResourceProperties(Reference ref) |
String |
getEntityUrl(Reference ref)
From EntityProducer
|
HttpAccess |
getHttpAccess()
From EntityProducer
|
String |
getLabel()
From EntityProducer
|
Post |
getPost(String postId,
boolean loadComments) |
List<Post> |
getPosts(QueryBean query) |
void |
init() |
String |
merge(String siteId,
Element root,
String archivePath,
String fromSiteId,
Map attachmentNames,
Map userIdTrans,
Set userListAllowImport)
From EntityProducer
|
boolean |
parseEntityReference(String referenceString,
Reference reference)
From EntityProducer
|
Comment |
saveComment(String commonsId,
Comment comment) |
Post |
savePost(Post post) |
void |
update(Observable o,
Object arg) |
boolean |
willArchiveMerge() |
public void init()
public Post getPost(String postId, boolean loadComments)
getPost in interface CommonsManagerpublic List<Post> getPosts(QueryBean query) throws Exception
getPosts in interface CommonsManagerExceptionpublic Post savePost(Post post)
savePost in interface CommonsManagerpublic boolean deletePost(String postId)
deletePost in interface CommonsManagerpublic Comment saveComment(String commonsId, Comment comment)
saveComment in interface CommonsManagerpublic boolean deleteComment(String siteId, String commonsId, String embedder, String commentId, String commentCreatorId, String postCreatorId)
deleteComment in interface CommonsManagerpublic String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
archive in interface EntityProducerpublic String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
merge in interface EntityProducerpublic Entity getEntity(Reference ref)
getEntity in interface EntityProducerpublic Collection getEntityAuthzGroups(Reference ref, String userId)
getEntityAuthzGroups in interface EntityProducerpublic String getEntityDescription(Reference arg0)
getEntityDescription in interface EntityProducerpublic ResourceProperties getEntityResourceProperties(Reference ref)
getEntityResourceProperties in interface EntityProducerpublic String getEntityUrl(Reference ref)
getEntityUrl in interface EntityProducerpublic HttpAccess getHttpAccess()
getHttpAccess in interface EntityProducerpublic String getLabel()
getLabel in interface EntityProducerpublic boolean parseEntityReference(String referenceString, Reference reference)
parseEntityReference in interface EntityProducerpublic boolean willArchiveMerge()
willArchiveMerge in interface EntityProducerpublic String getEntityPrefix()
public boolean entityExists(String id)
public void update(Observable o, Object arg)
Copyright © 2003–2020 Noodle Partners, Inc.. All rights reserved.