@Service public class SitePagesService extends Object
| Constructor and Description |
|---|
SitePagesService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCalendarEvent(String userName,
String password,
String siteName,
String what,
String where,
String description,
Date startDate,
Date endDate,
String timeStart,
String timeEnd,
boolean allDay,
String tag)
Add calendar event
|
boolean |
blogExists(String userName,
String password,
String siteName,
String blogTitle,
boolean draft)
Verify if blog post exists
|
boolean |
commentBlog(String userName,
String password,
String siteName,
String blogTitle,
boolean draft,
String comment)
Add comment to blog
|
boolean |
commentLink(String userName,
String password,
String siteName,
String linkTitle,
String comment)
Add comment to link
|
boolean |
createBlogPost(String userName,
String password,
String siteName,
String blogTitle,
String content,
boolean draft,
List<String> tags)
Create a new blog post
|
boolean |
createDiscussion(String userName,
String password,
String siteName,
String discussionTitle,
String text,
List<String> tags)
Create discussion topic
|
boolean |
createLink(String userName,
String password,
String siteName,
String linkTitle,
String url,
String description,
boolean internal,
List<String> tags)
Create a new blog post
|
boolean |
createWiki(String userName,
String password,
String siteName,
String wikiTitle,
String content,
List<String> tags)
Create a new wiki page
|
boolean |
deleteBlogComment(String userName,
String password,
String siteName,
String blogTitle,
String comment)
Delete a comment from a blog
|
boolean |
deleteBlogPost(String userName,
String password,
String siteName,
String blogTitle,
boolean isDraft)
Delete blog post
|
boolean |
deleteDiscussion(String userName,
String password,
String siteName,
String discussionTitle)
Delete a discussion topic
|
boolean |
deleteLink(String userName,
String password,
String siteName,
String linkTitle)
Delete link
|
boolean |
deleteLinkComment(String userName,
String password,
String siteName,
String linkTitle,
String comment)
Delete a comment from a link
|
boolean |
deleteWikiPage(String userName,
String password,
String siteName,
String wikiTitle)
Delete wiki page
|
boolean |
discussionExists(String userName,
String password,
String siteName,
String discussionTitle)
Verify if a discussion topic exists
|
List<String> |
getBlogComments(String userName,
String password,
String siteName,
String blogTitle)
Get list of comments for a blog
|
String |
getBlogName(String userName,
String password,
String siteName,
String blogTitle,
boolean draft)
Get the name (id) of a blog post
|
String |
getCommentNodeRef(String userName,
String password,
String siteName,
DashboardCustomization.Page page,
String itemTitle,
String comment)
Get a node ref for a comment added in blog or link page
|
String |
getDiscussionName(String userName,
String password,
String siteName,
String discussionTitle)
Get the name(id) of a created topic
|
List<String> |
getDiscussionReplies(String userName,
String password,
String siteName,
String discussionTitle)
Get a list of replies from a topic
|
String |
getEventName(String userName,
String password,
String siteName,
String what,
String where,
Date from,
Date to,
String timeStart,
String timeEnd,
boolean allDay)
Get the name (ID) of the event
|
List<String> |
getLinkComments(String userName,
String password,
String siteName,
String linkTitle)
Get list of comments for a link
|
String |
getLinkName(String userName,
String password,
String siteName,
String linkTitle)
Get the name (id) of a link
|
String |
getLinkNodeRef(String userName,
String password,
String siteName,
String linkTitle)
Get the node ref of a link
|
boolean |
linkExists(String userName,
String password,
String siteName,
String linkTitle)
Verify if link exists
|
boolean |
removeEvent(String userName,
String password,
String siteName,
String what,
String where,
Date from,
Date to,
String timeStart,
String timeEnd,
boolean allDay)
Remove an event
|
boolean |
replyToDiscussion(String userName,
String password,
String siteName,
String discussionTitle,
String reply)
Add reply to topic
|
boolean |
updateBlogPost(String userName,
String password,
String siteName,
String blogTitle,
String newBlogTitle,
String newBlogText,
boolean isDraft)
Update blog post
|
boolean |
updateDiscussion(String userName,
String password,
String siteName,
String discussionTitle,
String newDiscussionTitle,
String newText,
List<String> newTags)
Update a discussion topic
|
boolean |
updateEvent(String userName,
String password,
String siteName,
String eventName,
String newWhat,
String newWhere,
Date newStartDate,
Date newEndDate,
String newTimeStart,
String newTimeEnd,
boolean newAllDay)
Update an event
|
boolean |
updateLink(String userName,
String password,
String siteName,
String linkTitle,
String newLinkTitle,
String newUrl,
String newDescription,
boolean newInternal,
List<String> newTags)
Update link
|
boolean |
updateWikiPage(String userName,
String password,
String siteName,
String wikiTitle,
String newWikiTitle,
String newContent,
List<String> newTags)
Update wiki page
|
boolean |
wikiExists(String userName,
String password,
String siteName,
String wikiTitle)
Verify if wiki exists
|
public boolean addCalendarEvent(String userName, String password, String siteName, String what, String where, String description, Date startDate, Date endDate, String timeStart, String timeEnd, boolean allDay, String tag)
userName - String user namepassword - String user passwordsiteName - String site namewhat - String whatwhere - String event locationdescription - String event descriptionstartDate - Date event start dateendDate - Date event end datetimeStart - String event start timetimeEnd - String event time finishallDay - boolean all day eventtag - String tag the eventpublic String getEventName(String userName, String password, String siteName, String what, String where, Date from, Date to, String timeStart, String timeEnd, boolean allDay)
userName - String user namepassword - String user passwordsiteName - String site namewhat - String whatwhere - String event locationfrom - Date event start dateto - Date event end datetimeStart - String event start timetimeEnd - String event time finishallDay - boolean all day eventpublic boolean removeEvent(String userName, String password, String siteName, String what, String where, Date from, Date to, String timeStart, String timeEnd, boolean allDay)
userName - String user namepassword - String user passwordsiteName - String site namewhat - String whatwhere - String event locationfrom - Date event start dateto - Date event end datetimeStart - String event start timetimeEnd - String event time finishallDay - boolean all day eventRuntimeException - if site is not foundpublic boolean updateEvent(String userName, String password, String siteName, String eventName, String newWhat, String newWhere, Date newStartDate, Date newEndDate, String newTimeStart, String newTimeEnd, boolean newAllDay)
userName - String user namepassword - String user passwordsiteName - String site nameeventName - String even name to be updated should be returned by #getEventName()newWhat - String new whatnewWhere - String new event locationnewStartDate - Date new event start datenewEndDate - Date new event end datenewTimeStart - String new event start timenewTimeEnd - String new event time finishnewAllDay - boolean new all day eventpublic boolean createWiki(String userName, String password, String siteName, String wikiTitle, String content, List<String> tags)
userName - String user namepassword - String passwordsiteName - String site namewikiTitle - String wiki titlecontent - String wiki contenttags - List of tagsRuntimeException - if site not foundpublic boolean wikiExists(String userName, String password, String siteName, String wikiTitle)
userName - String user namepassword - String passwordsiteName - String site namewikiTitle - String wiki titlepublic boolean deleteWikiPage(String userName, String password, String siteName, String wikiTitle)
userName - String user namepassword - String passwordsiteName - String site namewikiTitle - String wiki titlepublic boolean updateWikiPage(String userName, String password, String siteName, String wikiTitle, String newWikiTitle, String newContent, List<String> newTags)
userName - String user namepassword - String passwordsiteName - String site namewikiTitle - String wiki title to be updatednewWikiTitle - String new wiki titlenewContent - String new wiki contentnewTags - new list of tagspublic boolean createBlogPost(String userName, String password, String siteName, String blogTitle, String content, boolean draft, List<String> tags)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titlecontent - String blog contentdraft - boolean create blog as draft. If not it will be publishedtags - List of tagspublic String getBlogName(String userName, String password, String siteName, String blogTitle, boolean draft)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titleisDraft - boolean is draftpublic boolean blogExists(String userName, String password, String siteName, String blogTitle, boolean draft)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titleisDraft - boolean is draftpublic boolean updateBlogPost(String userName, String password, String siteName, String blogTitle, String newBlogTitle, String newBlogText, boolean isDraft)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog title to be updatednewBlogTitle - String new blog titlenewBlogText - String new blog textisDraft - boolean is draftpublic boolean deleteBlogPost(String userName, String password, String siteName, String blogTitle, boolean isDraft)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titleisDraft - boolean is draftRuntimeException - if blog is not foundpublic boolean createLink(String userName, String password, String siteName, String linkTitle, String url, String description, boolean internal, List<String> tags)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String link titleurl - String link urldescription - String link descriptioninternal - boolean internaltags - List of tagsRuntimeException - if site is not foundpublic String getLinkName(String userName, String password, String siteName, String linkTitle)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String blog titlepublic String getLinkNodeRef(String userName, String password, String siteName, String linkTitle)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String blog titlepublic boolean linkExists(String userName, String password, String siteName, String linkTitle)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String blog titlepublic boolean deleteLink(String userName, String password, String siteName, String linkTitle)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String blog titlepublic boolean updateLink(String userName, String password, String siteName, String linkTitle, String newLinkTitle, String newUrl, String newDescription, boolean newInternal, List<String> newTags)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String link title to be updatednewLinkTitle - String new link titlenewUrl - String link new urlnewDescription - String new link descriptionnewInternal - boolean new internalnewTags - new List of tagspublic boolean createDiscussion(String userName, String password, String siteName, String discussionTitle, String text, List<String> tags)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String topic titletext - String topic contenttags - ListRuntimeException - if site is not foundpublic String getDiscussionName(String userName, String password, String siteName, String discussionTitle)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String discussion titlepublic boolean discussionExists(String userName, String password, String siteName, String discussionTitle)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String discussion titlepublic boolean updateDiscussion(String userName, String password, String siteName, String discussionTitle, String newDiscussionTitle, String newText, List<String> newTags)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String discussion title to be updatednewDiscussionTitle - String new titlenewText - String new textnewTags - Listpublic boolean deleteDiscussion(String userName, String password, String siteName, String discussionTitle)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String discussion titlepublic List<String> getDiscussionReplies(String userName, String password, String siteName, String discussionTitle)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String discussion titlepublic boolean replyToDiscussion(String userName, String password, String siteName, String discussionTitle, String reply)
userName - String user namepassword - String passwordsiteName - String site namediscussionTitle - String topic titlereply - String reply to topicpublic boolean commentBlog(String userName, String password, String siteName, String blogTitle, boolean draft, String comment)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titledraft - boolean true if draftcomment - String comment to addpublic boolean commentLink(String userName, String password, String siteName, String linkTitle, String comment)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String link titlecomment - String commentpublic List<String> getBlogComments(String userName, String password, String siteName, String blogTitle)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titledraft - boolean if blog is draftpublic List<String> getLinkComments(String userName, String password, String siteName, String linkTitle)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String link titlepublic String getCommentNodeRef(String userName, String password, String siteName, DashboardCustomization.Page page, String itemTitle, String comment)
userName - String user namepassword - String passwordsiteName - String site namepage - Page page where the comment was created (Blog or Link)itemTitle - String titlecomment - String commentpublic boolean deleteBlogComment(String userName, String password, String siteName, String blogTitle, String comment)
userName - String user namepassword - String passwordsiteName - String site nameblogTitle - String blog titlecomment - String comment to deletepublic boolean deleteLinkComment(String userName, String password, String siteName, String linkTitle, String comment)
userName - String user namepassword - String passwordsiteName - String site namelinkTitle - String link titlecomment - String comment to deleteCopyright © 2017 Alfresco Software. All rights reserved.