|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupSpaceContentControl<T extends CommunityContent>
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
This is a GroupSpace-specific control for performing CRUD operations. As such, it must be run in the web tier. Declarative instantiation (@Control fooControl;) from a PageFlow or from another control
is the preferred method of instantiating controls (as this will supply the control a proper
Control Container Context (CCC)). Should the control be instantiated programmatically, from a
different context or with an application scope (rather than webapp), extra measures should be taken:
AppScopedControlsFactory to obtain the CCC
ControlFilter in web.xml
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.bea.apps.groupspace.controls.generic.ContentControlBase |
|---|
ContentControlBase.NodeSearchType, ContentControlBase.Params |
| Method Summary | |
|---|---|
Set<T> |
asSet(SortableFilterablePagedResult<T> pagedResults)
Convert to Set. |
Folder |
createFolder(String name,
Folder parentFolder)
This will create a folder with the default visiblity "COMMUNITY", having an owner whose username is the request principal. |
Folder |
createFolder(String name,
ID parentID)
This will create a folder with the default visiblity "COMMUNITY", having an owner whose username is the request principal. |
SortableFilterablePagedResult<T> |
findByDescription(String description)
Returns null if none found |
SortableFilterablePagedResult<T> |
findByTitle(String title)
Returns null if none found |
Set<T> |
getCommunity()
Get all community-scoped data beneath the top content folder |
Set<T> |
getCommunityAndPrivate()
returns all of the children of the top node as Type T |
Folder |
getCommunityFolder()
Return the top node of this community. |
Set<T> |
getPersonal()
retrieves all of the children of the user's personal folder |
Set<T> |
getPrivate()
Get all private-scoped data beneath the top content folder for this user |
Set<ContentBase> |
getReferencingContent(Node node)
Returns null if none found |
Set<ContentBase> |
getReferencingContent(T thing)
For a given content item retrieves content items that reference it via a Link Property |
Set<ContentBase> |
getRelatedContent(T thing)
Retrieves related content and returns null if none found |
void |
promoteToCommunity(T thing,
boolean promoteChildren)
Modifies the visibility of content from Private to Community |
void |
removeCommunityAndPrivate()
removes all of the children of the top node |
void |
removePersonal()
removes all of the children of the user's personal folder |
void |
removePrivate()
removes all of the user's private data of type T |
| Methods inherited from interface com.bea.apps.groupspace.controls.generic.ContentControlBase |
|---|
createObjectClass, createObjects, createObjects, findById, findContentById, findMany, findMany, findManyChildren, getAllPropertyDefinitions, getDefaultStringValue, getFolder, getImmediateChildren, getImmediateChildren, getImmediateChildrenAsPagedResult, getObjectClass, getTopFolder, getTopNode, move, move, remove, remove, remove, removeAll, update, update |
| Method Detail |
|---|
Folder getCommunityFolder()
throws InstantiationException,
IllegalAccessException,
InvocationTargetException,
com.bea.content.nodemappers.NodeMapper.NodeMapperException,
AuthenticationException,
AuthorizationException,
NoSuchNodeException,
RepositoryException
InstantiationException
IllegalAccessException
InvocationTargetException
com.bea.content.nodemappers.NodeMapper.NodeMapperException
AuthenticationException
AuthorizationException
NoSuchNodeException
RepositoryException
Folder createFolder(String name,
Folder parentFolder)
throws AuthorizationException,
NodeExistsException,
RepositoryException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchObjectClassException,
InstantiationException, IllegalAccessException, InvocationTargetException
Folder createFolder(String name,
ID parentID)
throws AuthorizationException,
NodeExistsException,
RepositoryException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchObjectClassException,
InstantiationException, IllegalAccessException, InvocationTargetException
Set<ContentBase> getReferencingContent(Node node)
throws AuthorizationException,
RepositoryException,
InstantiationException,
IllegalAccessException
RepositoryException
AuthorizationException - throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
InstantiationException
IllegalAccessException
Set<ContentBase> getRelatedContent(T thing)
throws RepositoryException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
Set<ContentBase> getReferencingContent(T thing)
throws AuthorizationException,
RepositoryException,
InstantiationException,
IllegalAccessException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
InstantiationException
IllegalAccessException
Set<T> getPrivate()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
Set<T> getCommunity()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
Set<T> getCommunityAndPrivate()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
void removeCommunityAndPrivate()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
Set<T> getPersonal()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
void removePersonal()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
void removePrivate()
throws AuthorizationException,
NoSuchNodeException,
RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
SortableFilterablePagedResult<T> findByTitle(String title)
throws AuthorizationException,
RepositoryException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
SortableFilterablePagedResult<T> findByDescription(String description)
throws AuthorizationException,
RepositoryException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionSet<T> asSet(SortableFilterablePagedResult<T> pagedResults)
void promoteToCommunity(T thing,
boolean promoteChildren)
throws AuthorizationException,
NoSuchNodeException,
RepositoryException,
GSNonUniqueContentException,
GSContentParentVisibilityException
RepositoryException
AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchPropertyException,
InstantiationException, IllegalAccessException, InvocationTargetException,
NodeMapper.NodeMapperException, IOException
NoSuchNodeException
GSNonUniqueContentException
GSContentParentVisibilityException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||