|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.controls.generic.ContentControlBaseImpl<T,Folder>
com.bea.apps.groupspace.controls.generic.GroupSpaceContentControlImpl<T>
public abstract class GroupSpaceContentControlImpl<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 |
Field Summary | |
---|---|
static int |
ALL_TYPES
|
protected ContentContext |
contentContext
ContentContext, required for CM-related operations, and must be updated with the current request for each use. |
Fields inherited from class com.bea.apps.groupspace.controls.generic.ContentControlBaseImpl |
---|
beanClass, contentFactory, DEFAULT_SEARCH_LOAD_SIZE, nodeManager, objectClassType, repoID, repoName, searchManager, typeManager |
Constructor Summary | |
---|---|
GroupSpaceContentControlImpl()
|
Method Summary | |
---|---|
Set<T> |
asSet(SortableFilterablePagedResult<T> pagedResults)
Convert to Set, returning an empty set if nothing is there |
Folder |
createFolder(String name,
Folder parentFolder)
Use the parent Folder |
abstract Folder |
createFolder(String name,
ID parentID)
Use the parent ID |
SortableFilterablePagedResult<T> |
findByDescription(String description)
Returns null if none found |
T |
findById(String nodeIdString)
Find an item based on its Node ID overridden to use GS_UtilCmxControlBean |
SortableFilterablePagedResult<T> |
findByTitle(String title)
Returns null if none found |
ContentBase |
findContentById(String nodeIdString)
Find an item based on its Node ID overridden to use GS_UtilCmxControlBean |
SortableFilterablePagedResult<T> |
findMany(String expression,
String[] searchPaths,
SortCriteria[] sortCriteria)
Retrieve a set of things based on properties in an expression. |
Set<T> |
getAll()
Get all items of type T including all visibilities. |
protected Set<Node> |
getAllNodes()
Get all Nodes for this control's content type (eg, Link, Issue) this will also return all folders beneath the topNode |
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. |
Folder |
getFolder(ID folderId)
Get the Folder of the Node with the supplied ID. |
SortableFilterablePagedResult<ContentBase> |
getImmediateChildrenAsPagedResult(Node node,
SortCriteria[] sortCriteria,
ContentControlBase.NodeSearchType hierarchySearchType)
Get the immediate children of this item. |
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)
Return an |
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)
This method returns all related content that the logged in user is entitled to see |
Node |
getTopNode()
Get the top-level node of each data type (eg, top Links folder) |
T |
move(ID source,
ID newParent)
Move Node from one place to another overridden to use GS_UtilCmxControlBean |
void |
promoteToCommunity(T thing,
boolean promoteChildren)
please see interface documentation |
void |
remove(Node node)
overridden to use GS_UtilCmxControlBean |
void |
removeAll()
Remove all data of this type |
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 |
void |
update(T updatedThing)
Update an existing thing and flush binary/search caches todo check out interface comment to be sure comment about wrapped exceptions is right todo maybe add RepoEx part to them all to go with wrapped disclaimer overridden to use GS_UtilCmxControlBean |
Methods inherited from class com.bea.apps.groupspace.controls.generic.ContentControlBaseImpl |
---|
createObject, createObjectClass, createObjects, createObjects, createType, findMany, findManyChildren, getAllChildren, getAllPropertyDefinitions, getDefaultStringValue, getFolderByExpression, getImmediateChildren, getImmediateChildren, getObjectClass, getTopFolder, move, recurseRepository, remove, remove, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bea.apps.groupspace.controls.generic.ContentControlBase |
---|
createObjectClass, createObjects, createObjects, findMany, findManyChildren, getAllPropertyDefinitions, getDefaultStringValue, getImmediateChildren, getImmediateChildren, getObjectClass, getTopFolder, move, remove, remove, update |
Field Detail |
---|
public static final int ALL_TYPES
protected transient ContentContext contentContext
Constructor Detail |
---|
public GroupSpaceContentControlImpl()
Method Detail |
---|
public Node getTopNode() throws AuthorizationException, NoSuchNodeException, RepositoryException
getTopNode
in interface ContentControlBase<T extends CommunityContent,Folder>
getTopNode
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
RepositoryException
NoSuchNodeException
public Folder getCommunityFolder()
getCommunityFolder
in interface GroupSpaceContentControl<T extends CommunityContent>
public Set<T> getAll() throws AuthorizationException, NoSuchNodeException, RepositoryException
getAll
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
NoSuchNodeException
RepositoryException
public void removeAll() throws AuthorizationException, NoSuchNodeException, RepositoryException
removeAll
in interface ContentControlBase<T extends CommunityContent,Folder>
removeAll
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
RepositoryException
NoSuchNodeException
public Set<T> getCommunity() throws AuthorizationException, NoSuchNodeException, RepositoryException
getCommunity
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public Set<T> getPrivate() throws AuthorizationException, NoSuchNodeException, RepositoryException
getPrivate
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public Set<T> getCommunityAndPrivate() throws AuthorizationException, NoSuchNodeException, RepositoryException
GroupSpaceContentControl
getCommunityAndPrivate
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public void removePrivate() throws AuthorizationException, NoSuchNodeException, RepositoryException
removePrivate
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public void removeCommunityAndPrivate() throws AuthorizationException, NoSuchNodeException, RepositoryException
GroupSpaceContentControl
removeCommunityAndPrivate
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public Set<T> getPersonal() throws AuthorizationException, NoSuchNodeException, RepositoryException
GroupSpaceContentControl
getPersonal
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
public void removePersonal() throws AuthorizationException, NoSuchNodeException, RepositoryException
GroupSpaceContentControl
removePersonal
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NoSuchNodeException
RepositoryException
protected Set<Node> getAllNodes() throws AuthorizationException, NoSuchNodeException, RepositoryException
ContentControlBaseImpl
AuthorizationException
NoSuchNodeException
RepositoryException
public SortableFilterablePagedResult<ContentBase> getImmediateChildrenAsPagedResult(Node node, SortCriteria[] sortCriteria, ContentControlBase.NodeSearchType hierarchySearchType) throws AuthorizationException, NoSuchNodeException, RepositoryException
getImmediateChildrenAsPagedResult
in interface ContentControlBase<T extends CommunityContent,Folder>
getImmediateChildrenAsPagedResult
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
NoSuchNodeException
RepositoryException
public SortableFilterablePagedResult<T> findMany(String expression, String[] searchPaths, SortCriteria[] sortCriteria) throws AuthorizationException, NoSuchNodeException, RepositoryException
ContentControlBaseImpl
findMany
in interface ContentControlBase<T extends CommunityContent,Folder>
findMany
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
expression
- searchPaths
- sortCriteria
-
AuthorizationException
NoSuchNodeException
RepositoryException
public Set<T> asSet(SortableFilterablePagedResult<T> pagedResults)
asSet
in interface GroupSpaceContentControl<T extends CommunityContent>
public void update(T updatedThing) throws AuthorizationException, NoSuchNodeException, RepositoryException
update
in interface ContentControlBase<T extends CommunityContent,Folder>
update
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchPropertyException,
InstantiationException, IllegalAccessException, InvocationTargetException,
NodeMapper.NodeMapperException, IOException
RepositoryException
NoSuchNodeException
public void remove(Node node) throws AuthorizationException, RepositoryException
remove
in interface ContentControlBase<T extends CommunityContent,Folder>
remove
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationException
RepositoryException
public T move(ID source, ID newParent) throws AuthorizationException, NoSuchNodeException, RepositoryException
move
in interface ContentControlBase<T extends CommunityContent,Folder>
move
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
NoSuchNodeException
- throws ControlException - unchecked exception that wraps AuthenticationException
RepositoryException
public T findById(String nodeIdString) throws AuthorizationException, NoSuchNodeException, RepositoryException
findById
in interface ContentControlBase<T extends CommunityContent,Folder>
findById
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
RepositoryException
NoSuchNodeException
public ContentBase findContentById(String nodeIdString) throws AuthorizationException, NoSuchNodeException, RepositoryException
findContentById
in interface ContentControlBase<T extends CommunityContent,Folder>
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
RepositoryException
NoSuchNodeException
public abstract Folder createFolder(String name, ID parentID) throws AuthorizationException, NodeExistsException, RepositoryException
createFolder
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NodeExistsException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchObjectClassException,
InstantiationException, IllegalAccessException, InvocationTargetException
RepositoryException
public Folder createFolder(String name, Folder parentFolder) throws AuthorizationException, NodeExistsException, RepositoryException
createFolder
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
NodeExistsException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchObjectClassException,
InstantiationException, IllegalAccessException, InvocationTargetException
RepositoryException
public SortableFilterablePagedResult<T> findByTitle(String title) throws AuthorizationException, NoSuchNodeException, RepositoryException
findByTitle
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
RepositoryException
NodeExistsException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
NoSuchNodeException
public SortableFilterablePagedResult<T> findByDescription(String description) throws AuthorizationException, NoSuchNodeException, RepositoryException
GroupSpaceContentControl
findByDescription
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
RepositoryException
NodeExistsException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
NoSuchNodeException
public Folder getFolder(ID folderId) throws AuthorizationException, NoSuchNodeException, RepositoryException
getFolder
in interface ContentControlBase<T extends CommunityContent,Folder>
getFolder
in class ContentControlBaseImpl<T extends CommunityContent,Folder>
AuthorizationException
NoSuchNodeException
RepositoryException
public void promoteToCommunity(T thing, boolean promoteChildren) throws AuthorizationException, NoSuchNodeException, RepositoryException, GSNonUniqueContentException, GSContentParentVisibilityException
promoteToCommunity
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
RepositoryException
NodeExistsException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchPropertyException,
InstantiationException, IllegalAccessException, InvocationTargetException,
NodeMapper.NodeMapperException, IOException
NoSuchNodeException
GSNonUniqueContentException
GSContentParentVisibilityException
public Set<ContentBase> getRelatedContent(T thing) throws RepositoryException
getRelatedContent
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
RepositoryException
NodeExistsException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionpublic Set<ContentBase> getReferencingContent(T thing) throws AuthenticationException, AuthorizationException, RepositoryException, InstantiationException, IllegalAccessException
GroupSpaceContentControl
getReferencingContent
in interface GroupSpaceContentControl<T extends CommunityContent>
AuthorizationException
RepositoryException
NodeExistsException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
AuthenticationException
InstantiationException
IllegalAccessException
public Set<ContentBase> getReferencingContent(Node node) throws AuthenticationException, AuthorizationException, RepositoryException, InstantiationException, IllegalAccessException
getReferencingContent
in interface GroupSpaceContentControl<T extends CommunityContent>
node
-
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeException
RepositoryException
AuthenticationException
InstantiationException
IllegalAccessException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |