|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An IDiscussionItem is a contribution of a user to a discussion.
It consists of the attributes name, description, date, author and content. Important is that the name of the IDiscussionItem
is a unique identifier in the wcm. The description of the IDiscussionItem is a name which can be
displayed for the user.
| Method Summary | |
boolean |
canAddFavorites()
Checks if user can add item to her favorites. |
boolean |
canDeleteChild(IDiscussionItem item)
Checks if the deletion of a child discussion item is possible. |
boolean |
canReply()
Checks if a reply to this item is possible or not. |
boolean |
canUseSubscription()
Checks if a subscription for the discussion item is possible |
IProperty |
getAuthor()
Gets the author of an IDiscussionItem. |
IDiscussionItemList |
getChildren()
Gets all replies to this IDiscussionItem. |
IDiscussionItemList |
getChildren(IDiscussionItem branchItem)
|
IContent |
getContent()
Deprecated. as of NW04. |
IProperty |
getDate()
Gets the creation date of the IDiscussionItem. |
java.lang.String |
getDescription()
Gets the description of the IDiscussionItem.
|
IDiscussionItem |
getLastPost()
Gets last reply. |
IProperty |
getName()
Gets the name of an IDiscussionItem.
|
int |
getNumberOfPosts()
Gets the number of posts that belong to discussion topic. |
int |
getNumberOfPosts(IDiscussionItem branchItem)
Gets the number of posts that belong to discussion topic. |
IDiscussionItem |
getParent()
Gets the parent IDiscussionItem instance. |
IDiscussionItemList |
getPosts(java.lang.String sortCriterion,
java.lang.String sortDirection,
IDiscussionItem branchItem,
IDiscussionItem selectedItem,
int startIndex,
int length)
Gets a set (page) of discussion items of a discussion topic. |
IDiscussionItemList |
getPostsInTreeOrder()
Gets all discussion items of a discussion topic. |
java.lang.String |
getPostStartingText()
|
ICollection |
getReplyCollection()
Get the ReplyCollection attribute of the IDiscussionItem object. |
IResource |
getResource()
Gets the discussion item as an IResource object.
|
IResourceContext |
getResourceContext()
Gets resource context of a discussion item. |
RID |
getRid()
Gets the RID (better WcmPath); This is an identifier for the
IDiscussionItem |
java.lang.String |
getSubject()
|
IDiscussionItem |
getTopic()
Gets the topic IDiscussionItem instance. |
DiscussionItemType |
getType()
Gets the type of a discussion item. |
RID |
getUri()
Deprecated. as of NW04. Replaced by getRid() |
boolean |
hasChildren()
Gets flag that shows whether the discussion item has replies. |
boolean |
isSubscribed()
Checks if a subscription for this item exists. |
void |
setContent(java.lang.String content)
Deprecated. as of NW04. |
void |
setDescription(java.lang.String description)
Sets the description of the IDiscussionItem.
|
void |
setLastPost()
Sets the last post attribute for a topic discussion item. |
void |
setLastPost(IDiscussionItem item)
Sets the last post attribute for a topic discussion item. |
void |
setNumberOfPost(int value)
Sets the absolute value for property, property set for topic resource |
void |
setNumberOfPosts(boolean increment,
int increment_value)
Sets the number of posts that belong to discussion topic. |
void |
setResourceContext(IResourceContext resourceContext)
Sets the resource context of a discussion item. |
void |
setType(DiscussionItemType type)
Sets the type of a discussion item. |
void |
setUri(RID uri)
Sets the RID (better WcmPath); This is an identifier for a the
IDiscussionItem.
|
| Method Detail |
public java.lang.String getDescription()
throws ResourceException
IDiscussionItem.
The description is the name of an IDiscussionItem.
The name is normally used for displaying the IDiscussionItem on the user interface.IDiscussionItemResourceException - if the actual resource is null
and the ResourceFactory cannot get an instance of the actual resource
public void setDescription(java.lang.String description)
throws WcmException
IDiscussionItem.
The description is the name for an IDiscussionItem.
The name is normally used for displaying the IDiscussionItem
on the user interface. The caller of the method is responsible for making
sure that the argument for description is a valid instance.description - the name of the IDiscussionItemWcmException - if the actual resource is null and
the ResourceFactory cannot get an instance of the actual resource
public IContent getContent()
throws ResourceException,
AccessDeniedException
IDiscussionItem.
This is the statement that an user posts to the discussion.IContent instance that contains the user's textResourceException - if the actual resource is null
and the ResourceFactory
cannot get an instance of the actual resourceAccessDeniedException - if the user has no access rights
public void setContent(java.lang.String content)
throws WcmException
IDiscussionItem.
This is the statement that an user posts to the discussion.
Thecaller of the method is responsible that the argument for content is a valid instance.content - contains the user's textWcmException - if the actual resource is
public IProperty getName()
throws ResourceException
IDiscussionItem.
The name here is a GUID, which is a unique id for
each IDiscussionItem.IDiscussionItem;
The GUID is an unique id of the IDiscussionItemResourceException - if the actual resource is null and
the ResourceFactory
cannot get an instance of the actual resource
public IProperty getAuthor()
throws ResourceException
IDiscussionItem.IDiscussionItemResourceException - if the actual resource is null and
the ResourceFactory
cannot get an instance of the actual resource
public IProperty getDate()
throws ResourceException
IDiscussionItem.IProperty instance with the creation date
of the IDiscussionItemResourceException - if the actual resource is null and
the ResourceFactory
cannot get an instance of the actual resource
public IResource getResource()
throws ResourceException
IResource object.
An IDiscussionItem has a name,
description, date, author and content.IResource instance representing
a discussion item with name, description, content etc.ResourceException - if the actual resource is null and
the ResourceFactory
cannot get an instance of the actual resourcepublic void setUri(RID uri)
RID (better WcmPath); This is an identifier for a the
IDiscussionItem.
The caller of the method is responsible for making sure that the RID
argument is a valid instance.uri - The new Uri valuepublic RID getUri()
RID (better WcmPath); This is an identifier for the
IDiscussionItem.RID for the WcmPathpublic RID getRid()
RID (better WcmPath); This is an identifier for the
IDiscussionItemRID for the WcmPathpublic void setResourceContext(IResourceContext resourceContext)
resourceContext is a valid instance.resourceContext - instance with client informationpublic IResourceContext getResourceContext()
IResourceContext instance with client information
public DiscussionItemType getType()
throws ResourceException
ResourceException - Exception raised in failure situation
public void setType(DiscussionItemType type)
throws ResourceException
type - The new Type value
public IDiscussionItemList getChildren()
throws ResourceException
IDiscussionItem.IDiscussionItemList code>
which contains the discussion items- Throws:
ResourceException - if the IDiscussionItem cannot be located
public IDiscussionItemList getChildren(IDiscussionItem branchItem)
throws ResourceException,
WcmException
public boolean hasChildren()
throws ResourceException
true if the IDiscussionItem
has replies, if not, returns falseResourceException - if the IDiscussionItem cannot be located
public int getNumberOfPosts(IDiscussionItem branchItem)
throws ResourceException
branchItem - a branch itemResourceException - if the IDiscussionItem cannot be located
public java.lang.String getPostStartingText()
throws ResourceException
public int getNumberOfPosts()
throws ResourceException
ResourceException - if the IDiscussionItem cannot be located
public IDiscussionItemList getPosts(java.lang.String sortCriterion,
java.lang.String sortDirection,
IDiscussionItem branchItem,
IDiscussionItem selectedItem,
int startIndex,
int length)
throws ResourceException
sortCriterion - Criterion for sorting, default is "Age", other is "Author"sortDirection - 1 for ascending (default), 0 for descendingbranchItem - the branch IDiscussionItemselectedItem - the selected IDiscussionItemstartIndex - the first item of a pagelength - the page lengthResourceException - Exception raised in failure situation
public IDiscussionItemList getPostsInTreeOrder()
throws ResourceException
ResourceException -
public IDiscussionItem getLastPost()
throws WcmException
WcmException - Exception raised in failure situation
public void setNumberOfPosts(boolean increment,
int increment_value)
throws WcmException
increment - true for increment, false for decrementincrement_value - the value how to increment or decrementWcmException - Exception raised if application property service
is not available
public void setNumberOfPost(int value)
throws WcmException
value - The new NumberOfPosts valueWcmException - Exception raised if application property service
is not availablepublic void setLastPost(IDiscussionItem item)
item - The new LastPost valuepublic void setLastPost()
public ICollection getReplyCollection()
throws ResourceException
ResourceException - Exception raised in failure situation
public IDiscussionItem getParent()
throws ResourceException,
WcmException
ResourceException - Exception raised in failure situationWcmException - Exception raised in failure situation
public IDiscussionItem getTopic()
throws WcmException
WcmException - Exception raised in failure situation
public java.lang.String getSubject()
throws ResourceException
public boolean canReply()
public boolean canDeleteChild(IDiscussionItem item)
throws ResourceException,
WcmException
item - is the child discussion item to be deletedResourceException - if item resource is not foundWcmException - if problems with RID of item occurspublic boolean canUseSubscription()
public boolean isSubscribed()
throws WcmException
public boolean canAddFavorites()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||