|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.nucontent.model.Node
com.nurelm.nucontent.model.Page
Corresponds to a Web page in a NuContent application. Through this object,
programmers can access every piece of NuContent-controlled content on
a particular page. NuContent provides access to the current
Page object via each request in the attribute called "page".
For example, say we create a Page object in the usual
way within a NuContent JSP page:
Page myPage = (Page) request.getAttribute("page");
Here's how to get the value of some content on the current page with the content ID of "test content":
String contentValue = page.getContent("test content").getText();
Here's how to get the value of some content with the same content ID ("test content") that happens to be in the third row of a repeat list with a repeat ID of "test list":
String contentValue =
page.getRepeatList("test list").getRepeatItem(2).getContent("test content").getText();
| Field Summary | |
|---|---|
protected java.util.ArrayList |
childNodeList
|
static java.lang.String |
CONTENT_ALREADY_EXISTS
|
static java.lang.String |
CONTENT_NOT_FOUND
|
protected java.util.Set |
contentSet
|
static java.lang.String |
DEFAULT_CONTENT
|
protected java.util.Set |
editorGroupNames
|
static java.lang.String |
FILE_ALREADY_EXISTS
|
static java.lang.String |
FILE_NOT_FOUND
|
protected java.util.Set |
fileSet
|
static java.lang.String |
IMAGE_ALREADY_EXISTS
|
static java.lang.String |
IMAGE_NOT_FOUND
|
protected java.util.Set |
imageSet
|
static java.lang.String |
NODE_NOT_FOUND
|
protected Page |
parent
|
static java.lang.String |
REPEAT_LIST_ALREADY_EXISTS
|
static java.lang.String |
REPEAT_LIST_NOT_FOUND
|
protected java.util.Set |
repeatListSet
|
protected java.util.Set |
reviewUserNames
|
protected java.util.ArrayList |
tasks
|
protected java.util.ArrayList |
versions
|
protected java.util.Set |
viewerGroupNames
|
static int |
WORKING_VERSION
|
| Fields inherited from class com.nurelm.nucontent.model.Node |
|---|
DEFAULT_NAME, DEFAULT_SHORT_DESC, id, isNewWindow, site, transientGeneration, transientIsBottomChildNode, transientIsChildNode, transientIsSelected, transientIsTopChildNode, version |
| Constructor Summary | |
|---|---|
Page()
This constructor does nothing. |
|
Page(java.lang.String name,
java.lang.String shortDesc,
Page parent)
|
|
Page(java.lang.String name,
java.lang.String shortDesc,
Page parent,
int version)
|
|
Page(java.lang.String name,
java.lang.String shortDesc,
Page parent,
java.lang.String id)
|
|
| Method Summary | |
|---|---|
File |
addChildFile(File file)
Adds a new child file to the end of the subpage list and returns the new File object. |
File |
addChildFile(File file,
int orderIndex)
Adds a new child file at the orderIndex location in the subpage list and returns the new File object. |
Node |
addChildLink(Link link)
|
Node |
addChildLink(Link link,
int orderIndex)
|
Page |
addChildPage(java.lang.String name,
java.lang.String shortDesc)
Adds a new child page and returns it. |
Page |
addChildPage(java.lang.String name,
java.lang.String shortDesc,
int orderIndex)
Adds child at specified index. |
Page |
addChildPage(java.lang.String name,
java.lang.String shortDesc,
int orderIndex,
java.lang.String id)
Adds child at specified index and with specified ID. |
Page |
addChildPage(java.lang.String name,
java.lang.String shortDesc,
java.lang.String id)
Use the other addChildPage method in preference over this one. |
void |
addContent(java.lang.String contentId,
java.lang.String text)
Adds the supplied content to the db. |
void |
addImage(Image image)
Adds the supplied image to the db. |
void |
addNuFile(StandAloneFile file)
Adds the supplied image to the db. |
void |
addOpenTask(int type,
java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
Adds a new, open task to the current page. |
void |
addOpenTaskWithOutClosePreviousTask(int type,
java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
Adds a new, open task to the current page. |
RepeatList |
addRepeatList(java.lang.String repeatListId)
Adds a new RepeatList that is associated with the supplied repeatListId. |
RepeatList |
addRepeatList(java.lang.String repeatListId,
java.lang.String linkedTemplateId)
Adds a new RepeatList that is associated with the supplied repeatListId and linked to linkedTemplateId. |
RepeatList |
addRepeatListCollection(java.lang.String repeatListId,
java.util.ArrayList repeatItemList)
Adds a new RepeatListCollection that is associated with the supplied repeatListId. |
boolean |
canBreed()
Returns true if the node can generate child nodes. |
int |
closeOpenTasks(int type,
java.lang.String comment)
Closes any open tasks in the current object that have the specified type. |
java.util.ArrayList |
getBirdSeedList()
Returns an ArrayList containing Page objects that represent the bird seed list (AKA bread crumb trail) leading up to the current page. |
java.util.ArrayList |
getChildNodeList()
Returns a list of all nodes that are children of this page. |
protected java.util.List |
getChildNodeListCopy()
Returns a certain type of "shallow" copy of the current Page
object's child node list. |
protected java.util.List |
getChildNodeListCopy(Page copyParent)
Returns a certain type of "shallow" copy of the current Page
object's child node list. |
java.util.Collection |
getChildPageList()
Returns list of pages that list this page as their parent. |
java.util.Collection |
getChildPageListSortByName()
Returns list of pages that list this page as their parent. |
java.lang.String |
getComments()
Gets an HTML formatted list of comments associated with this page. |
Content |
getContent(java.lang.String contentId)
|
Content |
getContentCreateIfNeeded(java.lang.String contentId,
java.lang.String defaultContent)
|
java.util.HashSet |
getContentSet()
|
protected java.util.Set |
getContentSetCopy()
Returns a "shallow" copy of the Set of this Page's
content. |
Page |
getCurrentVersion()
Gets the current page with this id. |
Page |
getCurrentWorkingCopy()
Gets the current working copy of this object. |
java.util.Set |
getEditorGroupNames()
Provides access to this Page's editor group names. |
java.lang.String[] |
getEditorGroupNamesArray()
Provides access to this Page's editor group names. |
protected java.util.Set |
getEditorGroupNamesCopy()
Returns a "shallow" copy of the Set of this Page's
editor group names. |
StandAloneFile |
getFile(java.lang.String fileId)
Returns the File object associated with the supplied
fileId. |
java.util.HashSet |
getFileSet()
|
protected java.util.Set |
getFileSetCopy()
Returns a "shallow" copy of the Set of this Page's
files. |
Task |
getFirstOpenTask()
Finds the first open task in this object and returns it. |
Task |
getFirstOpenTaskByType(int type)
Finds the first open task of the specified type in this object and returns it. |
java.lang.String |
getFirstOpenTaskDate()
Gets date of first open task in string form. |
java.lang.String |
getFirstOpenTaskType()
Gets type of first open task in string form. |
java.util.ArrayList |
getFullNavTreeList()
Returns ArrayList of Node objects with their transient generation and isSelected fields set. |
int |
getGeneration()
Calculates and returns the generation. |
Image |
getImage(java.lang.String imageId)
Returns the image associated with the supplied imageId. |
java.util.HashSet |
getImageSet()
|
protected java.util.Set |
getImageSetCopy()
Returns a "shallow" copy of the Set of this Page's
images. |
java.lang.String |
getLastWorkingPageComments()
Gets an HTML formatted list of comments associated with the most recent working page (this page if it is a working page). |
Page |
getLockingPage()
Gets the Page which has this Page locked. |
java.lang.String |
getLockingPageId()
Returns the page id of the page that has this one locked. |
User |
getLockingUser()
Returns the User who has this page locked. |
java.lang.String |
getName()
Provides access to this Page's name. |
StandAloneFile |
getNuFile(java.lang.String fileId)
Returns the image associated with the supplied imageId. |
java.util.Collection |
getOpenTasksByType(int type)
Finds the first open task of the specified type in this object and returns it. |
java.lang.String |
getPageURI()
|
Page |
getParent()
Returns this page's parent. |
RepeatList |
getRepeatList(java.lang.String repeatListId)
Returns the RepeatList associated with the supplied repeatId. |
RepeatList |
getRepeatList(java.lang.String repeatListId,
java.lang.String linkedTemplateId)
Returns the RepeatList associated with the supplied repeatId. |
RepeatList |
getRepeatListCollectionCreateIfNeeded(java.lang.String repeatListId,
java.util.ArrayList repeatItemList)
|
RepeatList |
getRepeatListCreateIfNeeded(java.lang.String repeatListId)
Returns the RepeatList associated with the supplied repeatId, and creates it if it does not already exist. |
RepeatList |
getRepeatListCreateIfNeeded(java.lang.String repeatListId,
java.lang.String linkedTemplateId)
Returns the RepeatList associated with the supplied repeatId and linked to the page indicated, and creates it if it does not already exist. |
java.util.HashSet |
getRepeatListSet()
|
protected java.util.Set |
getRepeatListSetCopy()
Returns a "shallow" copy of the Set of this Page's
repeat lists. |
boolean |
getRequireReview()
|
java.util.Set |
getReviewUserNames()
Provides access to this Page's review user names. |
java.lang.String[] |
getReviewUserNamesArray()
Provides access to this Page's review user names. |
protected java.util.Set |
getReviewUserNamesCopy()
Returns a "shallow" copy of the Set of this Page's
review group names. |
java.lang.String |
getShortDesc()
Provides access to this Page's short description. |
Site |
getSite()
Gets the Site to which this page belongs. |
java.lang.String |
getURI(java.lang.String parentTemplateFile)
Deprecated. Replaced by getURI(String,String). This deprecated
version will assume an empty contextPath. |
java.lang.String |
getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
Gets the current page's URI |
Page |
getVersion(int version)
Returns the version of this object with the specified version number. |
java.util.Set |
getViewerGroupNames()
Provides access to this Page's viewer groups. |
java.lang.String[] |
getViewerGroupNamesArray()
|
protected java.util.Set |
getViewerGroupNamesCopy()
Returns a "shallow" copy of the Set of this Page's
viewer group names. |
boolean |
hasChildren()
Returns true if this Node has children nodes. |
boolean |
isChildLinkEditable(UserValueObject userVO,
boolean isParentEditable)
Indicates if this object is editable. |
boolean |
isChildLinkViewable(UserValueObject userVO,
boolean isParentViewable)
Indicates if this object is viewable. |
boolean |
isEditable(UserValueObject userVO)
The page is editable if it is not locked by another user, and either ... |
boolean |
isInReview()
Determines if page is currently being reviewed. |
boolean |
isLocked()
Determines if this page is already locked. |
boolean |
isUserInEditorGroup(UserValueObject userVO)
Used to determine if the user is in a group that can edit this page. |
boolean |
isViewable(UserValueObject userVO)
Determines if the current page is viewable. |
Page |
lock(java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String pageURI,
java.lang.String comment)
Checks out, or "locks" a page. |
void |
moveChildNodeDown(int nodeIndex)
Moving up means giving the Node a smaller index. |
void |
moveChildNodeUp(int nodeIndex)
Moving up means giving the Node a larger index. |
void |
recursiveReplaceEditorGroups(java.lang.String[] newEditorGroups)
Replaces editor groups for this Page and all of it's
children recursively. |
void |
recursiveReplaceReviewUsers(java.lang.String[] newReviewUsers)
Replaces review users for this Page and all of it's
children recursively. |
void |
recursiveReplaceViewerGroups(java.lang.String[] newViewerGroups)
Applies the supplied permissions to this page and all of its descendent pages. |
void |
removeChildNode(Node node)
Remove the specified child object. |
void |
removeContent(java.lang.String contentId)
|
void |
removeImage(java.lang.String imageId)
Removes an image, but does not remove corresponding file. |
void |
removeNuFile(java.lang.String fileId)
Removes an image, but does not remove corresponding file. |
void |
removePageVersion(int version)
Removes a version of this object. |
void |
removeRepeatList(java.lang.String repeatListId)
Removes the specified RepeatList. |
void |
replaceEditorGroups(java.lang.String[] newEditorGroups)
Removes any editor group values and replaces them with the values contained in the supplied newEditorGroups array. |
void |
replaceReviewUsers(java.lang.String[] newReviewUsers)
Removes any review user values and replaces them with the values contained in the supplied newReviewUsernames array.If newReviewUserNames is null or empty, the review users are cleared and no groups are replaced. |
void |
replaceViewerGroups(java.lang.String[] newViewerGroups)
Removes any viewer group values and replaces them with the values contained in the supplied newViewerGroups array. |
void |
sendBackToEditor(java.lang.String comment)
Sends the page being reviewed back to the originating editor for further updates. |
void |
setName(java.lang.String name)
Sets this Page's name. |
void |
setPageURI(java.lang.String pageURI)
|
void |
setRequireReview(boolean reviewReq)
|
void |
setShortDesc(java.lang.String shortDesc)
Sets this Page's short description. |
void |
unlockAndCancel(javax.servlet.ServletContext sc,
java.lang.String comment,
User user)
Unlocks the current Page and discards all edits that have
been made to its working copy. |
void |
unlockAndSave(javax.servlet.ServletContext sc,
java.lang.String comment,
java.lang.String reviewType,
User user)
If this page does not require a review, unlocks the current page if it's locked, makes the working copy page the live page, and puts the old page into the version list; if the page does require review, redirects to assignReviewer. |
void |
unlockAndSave(javax.servlet.ServletContext sc,
java.lang.String comment,
java.lang.String reviewType,
User user,
boolean reviewTypeExt,
boolean doreview)
If this page does not require a review, unlocks the current page if it's locked, makes the working copy page the live page, and puts the old page into the version list; if the page does require review and review-exten turn on then redirects to assignReviewers. |
void |
updateContent(java.lang.String contentId,
java.lang.String text)
|
void |
updateContent(java.lang.String contentId,
java.lang.String text,
java.lang.String type)
|
| Methods inherited from class com.nurelm.nucontent.model.Node |
|---|
getId, getIsNewWindow, getTransientGeneration, getTransientIsBottomChildNode, getTransientIsChildNode, getTransientIsSelected, getTransientIsTopChildNode, getVersion, setIsNewWindow, setTransientGeneration, setTransientIsBottomChildNode, setTransientIsChildNode, setTransientIsSelected, setTransientIsTopChildNode, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_CONTENT
public static final java.lang.String NODE_NOT_FOUND
public static final java.lang.String CONTENT_NOT_FOUND
public static final java.lang.String CONTENT_ALREADY_EXISTS
public static final java.lang.String IMAGE_NOT_FOUND
public static final java.lang.String IMAGE_ALREADY_EXISTS
public static final java.lang.String FILE_NOT_FOUND
public static final java.lang.String FILE_ALREADY_EXISTS
public static final java.lang.String REPEAT_LIST_NOT_FOUND
public static final java.lang.String REPEAT_LIST_ALREADY_EXISTS
public static final int WORKING_VERSION
protected Page parent
protected java.util.Set contentSet
protected java.util.Set imageSet
protected java.util.Set fileSet
protected java.util.Set repeatListSet
protected java.util.ArrayList childNodeList
protected java.util.Set viewerGroupNames
protected java.util.Set editorGroupNames
protected java.util.Set reviewUserNames
protected java.util.ArrayList versions
protected java.util.ArrayList tasks
| Constructor Detail |
public Page()
public Page(java.lang.String name,
java.lang.String shortDesc,
Page parent)
public Page(java.lang.String name,
java.lang.String shortDesc,
Page parent,
java.lang.String id)
public Page(java.lang.String name,
java.lang.String shortDesc,
Page parent,
int version)
| Method Detail |
public boolean isViewable(UserValueObject userVO)
The page is viewable if...
userVO - Current user.
public boolean isEditable(UserValueObject userVO)
userVO - Current user.
public boolean isInReview()
public boolean isUserInEditorGroup(UserValueObject userVO)
public boolean isLocked()
public java.lang.String getComments()
[Edited by jim on 9/11/04 at 10:32am] I added some new events
[Reviewed and rejected by admin on 9/11/04 at 11:45am] Looks like you need to spell check your changes.
[Edited by jim on 9/11/04 at 1:20pm] Corrected spellings.
public java.lang.String getLastWorkingPageComments()
[Edited by jim on 9/11/04 at 10:32am] I added some new events
[Reviewed and rejected by admin on 9/11/04 at 11:45am] Looks like you need to spell check your changes.
[Edited by jim on 9/11/04 at 1:20pm] Corrected spellings.
public User getLockingUser()
throws DataAccessException
User who has this page locked.
User who has this page locked.
DataAccessException - Thrown if the page is not locked.
public Page lock(java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String pageURI,
java.lang.String comment)
throws DataAccessException
Task to the current page.
requestedCompletionDate - The requested completion date.assignedTo - The user to whom the task was assigned.assignedBy - The assigner of the task.pageURI - The URI of the page, excluding the context path.comment - A comment entered by the user or the system.
DataAccessException - Thrown if there is any problem locking this
page.
public void unlockAndSave(javax.servlet.ServletContext sc,
java.lang.String comment,
java.lang.String reviewType,
User user)
throws DataAccessException
Unlocking a page involves a few steps behind the scenes, all of which are performed in an all-or-nothing transaction:
Task on the current page
comment - Comments will be saved with the LOCK Task that
gets closed when this page is unlocked.
DataAccessException - Lock and unlock operations must happen on
non-working copy pages. Attempting to unlock a working copy page
results in an exception.
public void unlockAndSave(javax.servlet.ServletContext sc,
java.lang.String comment,
java.lang.String reviewType,
User user,
boolean reviewTypeExt,
boolean doreview)
throws DataAccessException
Unlocking a page involves a few steps behind the scenes, all of which are performed in an all-or-nothing transaction:
Task on the current page
comment - Comments will be saved with the LOCK Task that
gets closed when this page is unlocked.
DataAccessException - Lock and unlock operations must happen on
non-working copy pages. Attempting to unlock a working copy page
results in an exception.public Site getSite()
Site to which this page belongs.
Site to which this page belongs.
public void sendBackToEditor(java.lang.String comment)
throws DataAccessException
comment - The reviewer's comments
DataAccessException
public void unlockAndCancel(javax.servlet.ServletContext sc,
java.lang.String comment,
User user)
throws DataAccessException
Page and discards all edits that have
been made to its working copy.
DataAccessException - Lock and unlock operations must happen on
non-working copy pages. Attempting to unlock a working copy page
results in an exception.
public void addOpenTask(int type,
java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
type - The type of open task to add.requestedCompletionDate - The requested completion date.assignedTo - The user to whom the task was assigned.assignedBy - The assigner of the task.comment - A comment entered by the user or the system.
public void addOpenTaskWithOutClosePreviousTask(int type,
java.util.Date requestedCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
type - The type of open task to add.requestedCompletionDate - The requested completion date.assignedTo - The user to whom the task was assigned.assignedBy - The assigner of the task.comment - A comment entered by the user or the system.
public int closeOpenTasks(int type,
java.lang.String comment)
type - The Task.TaskType of the task(s) to be closed.comment - The comment to add to the comment fields of
the Tasks being closed.
public Task getFirstOpenTaskByType(int type)
type - The task type to find.
Task of type in this object, or null
if none exist.public java.util.Collection getOpenTasksByType(int type)
type - The task type to find.
Task of type in this object, or null
if none exist.public Task getFirstOpenTask()
Task in this object, or null
if none exist.public java.lang.String getFirstOpenTaskType()
public java.lang.String getFirstOpenTaskDate()
public Page getVersion(int version)
version - The version number of the page to be returned. If the
version does not exist, returns null.public Page getCurrentWorkingCopy()
public Page getCurrentVersion()
throws DataAccessException
DataAccessException
public Page getLockingPage()
throws DataAccessException
Page which has this Page locked.
DataAccessException - If this Page is not a working
copy, or if multiple locking pages are found.public java.lang.String getLockingPageId()
public boolean isChildLinkEditable(UserValueObject userVO,
boolean isParentEditable)
isChildLinkEditable in class NodeuserVO - Current user.isParentEditable - True if parent is editable.
public boolean isChildLinkViewable(UserValueObject userVO,
boolean isParentViewable)
isChildLinkViewable in class NodeuserVO - Current user.isParentViewable - True if parent is viewable.
public void replaceEditorGroups(java.lang.String[] newEditorGroups)
newEditorGroups - String[] array containing group names that will be
replace any existing editor groups for the page.public void replaceReviewUsers(java.lang.String[] newReviewUsers)
public void recursiveReplaceEditorGroups(java.lang.String[] newEditorGroups)
Page and all of it's
children recursively.
newEditorGroups - String[] array containing group names that will be
replace any existing editor groups for the page.public void recursiveReplaceReviewUsers(java.lang.String[] newReviewUsers)
Page and all of it's
children recursively.
public java.util.Set getEditorGroupNames()
Page's editor group names.
Page's editor group names.public java.lang.String[] getEditorGroupNamesArray()
Page's editor group names.
Page's editor group names.public java.util.Set getReviewUserNames()
Page's review user names.
Page's review user names.public java.lang.String[] getReviewUserNamesArray()
Page's review user names.
Page's review user names as String array.protected java.util.Set getReviewUserNamesCopy()
Page's
review group names.
public void replaceViewerGroups(java.lang.String[] newViewerGroups)
newViewerGroups - String array containing group names that will be
replace any existing viewer groups for the page.public void recursiveReplaceViewerGroups(java.lang.String[] newViewerGroups)
newViewerGroups - The new groups to use.public java.util.Set getViewerGroupNames()
Page's viewer groups.
Page's viewer groups.public java.lang.String[] getViewerGroupNamesArray()
public java.lang.String getURI(java.lang.String parentTemplateFile)
getURI(String,String). This deprecated
version will assume an empty contextPath.
getURI in class NodeparentTemplateFile - The JSP file that represents the page's template
public java.lang.String getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
getURI in class NodeparentTemplateFile - The JSP file that represents the page's templatecontextPath - The current context path.
public void moveChildNodeUp(int nodeIndex)
Node a larger index. If the supplied index is
out of bounds, then nothing happens.
nodeIndex - Index of the Node to move.public void moveChildNodeDown(int nodeIndex)
Node a smaller index.
nodeIndex - Index of the Node to move.
public Page addChildPage(java.lang.String name,
java.lang.String shortDesc)
name - Name of child.shortDesc - Short description of child.
Page object corresponding to child.
public Page addChildPage(java.lang.String name,
java.lang.String shortDesc,
java.lang.String id)
name - Name of child.id - NuContent ID of child.shortDesc - Short description of child.
Page object corresponding to child.
public Page addChildPage(java.lang.String name,
java.lang.String shortDesc,
int orderIndex)
name - Name of child.orderIndex - Index of child.shortDesc - Short description of child.
Page object corresponding to child.
public Page addChildPage(java.lang.String name,
java.lang.String shortDesc,
int orderIndex,
java.lang.String id)
name - Name of child.id - NuContent ID of child.orderIndex - Index of child.shortDesc - Short description of child.
Page object corresponding to child.
public void removeChildNode(Node node)
throws DataAccessException
node - The object to remove.
DataAccessException - Thrown if there's trouble removing the child.public File addChildFile(File file)
file - Object to add.
public File addChildFile(File file,
int orderIndex)
public Node addChildLink(Link link)
public Node addChildLink(Link link,
int orderIndex)
public java.util.ArrayList getChildNodeList()
public java.util.Collection getChildPageList()
public java.util.Collection getChildPageListSortByName()
public java.util.ArrayList getFullNavTreeList()
public int getGeneration()
public void addContent(java.lang.String contentId,
java.lang.String text)
throws DataAccessException
DataAccessException - if content already exists for the pageId /
contentId combination.
public void updateContent(java.lang.String contentId,
java.lang.String text)
throws DataAccessException
DataAccessException
public void updateContent(java.lang.String contentId,
java.lang.String text,
java.lang.String type)
throws DataAccessException
DataAccessException
public void removeContent(java.lang.String contentId)
throws DataAccessException
DataAccessExceptionpublic Content getContent(java.lang.String contentId)
public Content getContentCreateIfNeeded(java.lang.String contentId,
java.lang.String defaultContent)
throws DataAccessException
DataAccessException
public void addImage(Image image)
throws DataAccessException
DataAccessException - if image already exists for the pageId /
imageId combination.
public void removeImage(java.lang.String imageId)
throws DataAccessException
imageId - The image's unique id.
DataAccessException - Thrown if the image with the corresponding
id cannot be found.
public Image getImage(java.lang.String imageId)
throws DataAccessException