ALF-9153 Start on implementing the DiscussionService

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-08-11 21:14:48 +00:00
parent 753f154a92
commit 2f926fc967
6 changed files with 827 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ public interface DiscussionService {
* Creates a new {@link TopicInfo} in the given site
*/
@NotAuditable
TopicInfo createTopic(String siteShortName);
TopicInfo createTopic(String siteShortName, String title);
/**
* Creates a new {@link TopicInfo} attached to the specified Node.
@@ -52,7 +52,7 @@ public interface DiscussionService {
* {@link ForumModel#TYPE_FORUM}
*/
@NotAuditable
TopicInfo createTopic(NodeRef nodeRef, String title);
TopicInfo createTopic(NodeRef parentNodeRef, String title);
/**
* Updates an existing {@link PostInfo} in the repository.
@@ -62,6 +62,14 @@ public interface DiscussionService {
@NotAuditable
PostInfo updatePost(PostInfo post);
/**
* Updates an existing {@link TopicInfo} in the repository.
*
* @return The updated {@link TopicInfo}
*/
@NotAuditable
TopicInfo updateTopic(TopicInfo topic);
/**
* Deletes an existing {@link PostInfo} from the repository
*/
@@ -78,7 +86,7 @@ public interface DiscussionService {
* Retrieves an existing {@link PostInfo} from the repository
*/
@NotAuditable
PostInfo getPost(TopicInfo topic, String linkName);
PostInfo getPost(TopicInfo topic, String postName);
/**
* Retrieves the Primary (Root) Post in a topic, to which all
@@ -102,7 +110,7 @@ public interface DiscussionService {
* {@link ForumModel#TYPE_FORUM}
*/
@NotAuditable
TopicInfo getTopic(NodeRef nodeRef, String linkName);
TopicInfo getTopic(NodeRef parentNodeRef, String topicName);
/**

View File

@@ -76,7 +76,7 @@ public interface PostInfo extends Serializable, PermissionCheckValue {
String getCreator();
/**
* @return the modifier of the post
* @return the modifier of the wiki page
*/
String getModifier();

View File

@@ -67,6 +67,11 @@ public interface TopicInfo extends Serializable, PermissionCheckValue {
*/
String getCreator();
/**
* @return the modifier of the wiki page
*/
String getModifier();
/**
* @return the creation date and time
*/