|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IDiscussionManager defines the central methods of the
discussion repository service.
It is responsible for creating, deleting and keeping track of discussions.
Several instances of the IDiscussionManager can co-exist.
This enables the configuration of different storage
locations for IDiscussionItems.
A discussion must always be linked to an IResource.
This resource is called the primary resource.
All data belonging to the discussion is secondary data and is stored in a folder
of a special collaboration repository.
The location of the repository can be configured in the configuration framework.
| Field Summary | |
static java.lang.String |
PROP_DISCUSSION_NAMESPACE
|
static java.lang.String |
PROP_DISCUSSION_NUMBER_OF_POSTS
|
static java.lang.String |
PROP_DISCUSSION_NUMBER_OF_THREADS
|
| Method Summary | |
boolean |
canCreateDiscussion(IResource resource)
returns true if Security Management is available and if the current user has 'read' and 'write' Permission for the resource. |
IDiscussion |
createDiscussion(IResource resource)
Creates a new discussion for a given primary resource. |
void |
createSubscription(IDiscussion discussion,
IResourceContext context,
IResource resource)
Creates a subscription for an entire discussion or for a specific discussion item. |
void |
deleteDiscussion(IDiscussion discussion)
Deletes an IDiscussion instance and all discussion data related to the primary resource.
|
void |
deleteDiscussion(IResource resource)
Deletes an IDiscussion instance and all discussion data related to the specified primary resource.
|
void |
deleteDiscussion(RID resourceRid,
IResourceContext context)
Deletes an IDiscussion instance and all discussion data for an attached primary resource.
|
IDiscussion |
getDiscussion(IResource resource)
Gets the IDiscussion instance for the specified primary resource.
|
IDiscussionEvent |
getDiscussionEventTemplate(int type)
Get a IDiscussionEvent-template for the given
IDiscussionEvent-type. |
ICollection |
getDiscussionsCollection()
Gets ICollection, the root folder where all discussions of this service
are stored. |
ISubscription |
getSubscription(IDiscussion discussion,
IResourceContext context,
IResource resource)
Gets the subscription for a specified secondary resource (discussion or discussion item). |
IDiscussionItem |
getTopDiscussionItem(RID itemRid,
IResourceContext resourceContext)
Gets the discussion topic for a discussion item. |
IDiscussionItem |
getTopic(RID itemRid,
IResourceContext resourceContext)
Gets the discussion topic for a discussion item. |
boolean |
isOnlyCollectionsEnabled()
Checks if discussion service is only enabled for collections. |
boolean |
isSecureDiscussion()
Checks if discussion service is set to be a secure discussion. |
boolean |
isWithoutTopicLevel()
Checks if discussion service works with topics or directly on post level. |
| Methods inherited from interface com.sapportals.wcm.repository.service.IRepositoryService |
acceptServletCall, getDescription, getDescription, getID, getServiceType |
| Field Detail |
public static final java.lang.String PROP_DISCUSSION_NUMBER_OF_THREADS
public static final java.lang.String PROP_DISCUSSION_NUMBER_OF_POSTS
public static final java.lang.String PROP_DISCUSSION_NAMESPACE
| Method Detail |
public boolean isOnlyCollectionsEnabled()
public boolean isSecureDiscussion()
public boolean isWithoutTopicLevel()
public IDiscussion createDiscussion(IResource resource)
throws WcmException
resource causes an exception.resource - an IResource that specifies the primary
resource to which the discussion is attachedIDiscussion instance that holds all information on the discussionWcmException - if it is not possible to initialize all necessary services
public void createSubscription(IDiscussion discussion,
IResourceContext context,
IResource resource)
throws WcmException
discussion or resource causes an exception.
If context is null, the service context is used.discussion - is the IDiscussion instance for a discussion containing the resourcecontext - is the context of the serviceresource - an IResource instance that specifies the secondary resourceWcmException - if the creation of a subscription fails
public ISubscription getSubscription(IDiscussion discussion,
IResourceContext context,
IResource resource)
throws WcmException
discussion or resource causes an exception.
If context is null, the service context is used.discussion - is the IDiscussion instance for a discussion containing the resourcecontext - is the context of the serviceresource - an IResource instance that specifies a secondary resource (discussion or discussion item)ISubscription instance with the specified attributesWcmException - if the request for subscription to the resource fails
public IDiscussion getDiscussion(IResource resource)
throws WcmException
IDiscussion instance for the specified primary resource.
A discussion can exist even if no discussion threads exist.
Passing null as an argument for resource causes an exception.resource - an IResource that specifies the primary resource to which the discussion is attachedIDiscussion instance that holds all information on the discussionWcmException - if it is not possible to initialize all necessary servicespublic ICollection getDiscussionsCollection()
ICollection, the root folder where all discussions of this service
are stored.ICollection instance for the discussion root folderpublic boolean canCreateDiscussion(IResource resource)
public IDiscussionItem getTopic(RID itemRid,
IResourceContext resourceContext)
throws WcmException
itemRid causes an exception.
If resourceContext is null, the service context is used.itemRid - is the RID of an IDiscussionItem instanceresourceContext - is the context of the serviceWcmException - if it is not possible to identify the discussion item specified by itemRid
or if the topic item could not be found
public IDiscussionItem getTopDiscussionItem(RID itemRid,
IResourceContext resourceContext)
throws WcmException
itemRid causes an exception.
If resourceContext is null, the service context is used.itemRid - is the RID of an IDiscussionItem instanceresourceContext - is the context of the serviceWcmException - if it is not possible to identify the discussion item specified by itemRid
or if the topic item could not be found
public void deleteDiscussion(IDiscussion discussion)
throws WcmException
IDiscussion instance and all discussion data related to the primary resource.
After deletion of the discussion, a DELETE_DISCUSSION event is sent for the subscription service.
If no discussion exists, nothing happens.
Passing null as an argument for discussion causes an exception.discussion - the instance that has to be deletedWcmException - if the deletion of the secondary discussion folder has failed
public void deleteDiscussion(IResource resource)
throws WcmException
IDiscussion instance and all discussion data related to the specified primary resource.
After deletion of the discussion, a DELETE_DISCUSSION event is sent for the subscription service.
If no discussion exists, nothing happens.
Passing null as an argument for resource causes an exception.resource - the resource for discussion dataWcmException - if the deletion of the secondary discussion folder has failed
public void deleteDiscussion(RID resourceRid,
IResourceContext context)
throws WcmException
IDiscussion instance and all discussion data for an attached primary resource.
After deletion of the discussion, a DELETE_DISCUSSION event is sent for the subscription service.
If no discussion exists, nothing happens.
Passing null as an argument for resourceRid causes an exception.
If context is null, the service context is used.resourceRid - is the RID of the secondary discussion resourcecontext - is the context of the serviceWcmException - if the deletion of the secondary discussion folder has failedpublic IDiscussionEvent getDiscussionEventTemplate(int type)
IDiscussionEvent-template for the given
IDiscussionEvent-type.type - the IDiscussionEvent-type to get the template for.IDiscussionEvent-template for the given type
or null if the given type is not valid.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||