|
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 ContentControlBase<T extends ContentBase,V extends FolderBase>
Copyright (c) 2005-2006 by BEA Systems, Inc. All Rights Reserved.
Defines general operations for dealing with CM content. This class is meant to be used OUTSIDE of a GroupSpace community, since it will bypass GroupSpace security/role mappings 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 | |
---|---|
static class |
ContentControlBase.NodeSearchType
|
static interface |
ContentControlBase.Params
|
Method Summary | |
---|---|
ObjectClass |
createObjectClass()
Creates an ObjectClass for the given control |
Set<T> |
createObjects(Node[] nodes)
Create a collection of things of type T from an array of Nodes |
Set<T> |
createObjects(Set<Node> nodes)
Create a collection of things of type T from a set of Nodes |
T |
findById(String nodeIdString)
Find an item of type T based on its Node ID. |
ContentBase |
findContentById(String nodeIdString)
Find ANY item based on its Node ID. |
SortableFilterablePagedResult<T> |
findMany(String expression,
String[] searchPaths)
Retrieve a set of things based on properties in an expression. |
SortableFilterablePagedResult<T> |
findMany(String expression,
String[] searchPaths,
SortCriteria[] sortCriteria)
Retrieve a set of things based on properties in an expression. |
SortableFilterablePagedResult<T> |
findManyChildren(String expression)
|
List<PropertyDefinition> |
getAllPropertyDefinitions()
|
String |
getDefaultStringValue(String propertyName)
|
V |
getFolder(ID folderId)
Get Folder of type V of the Node with the supplied ID. |
Set<ContentBase> |
getImmediateChildren(V parentFolder,
ContentControlBase.NodeSearchType type)
Get the immediate children of this item as a set. |
Set<ContentBase> |
getImmediateChildren(V parentFolder,
SortCriteria[] sortCriteria,
ContentControlBase.NodeSearchType type)
Get the immediate children of this item as a set. |
SortableFilterablePagedResult<ContentBase> |
getImmediateChildrenAsPagedResult(Node node,
SortCriteria[] sortCriteria,
ContentControlBase.NodeSearchType hierarchySearchType)
Get the immediate children of this item as a paged result. |
ObjectClass |
getObjectClass()
Return the object class associated with the thing T |
V |
getTopFolder()
Get the top-level node of each data type (eg, top Links folder) |
Node |
getTopNode()
Get the top-level node of each data type (eg, top Links folder) |
T |
move(ID source,
ID newParent)
Move Node identified by source ID to destination specified by newParent ID |
T |
move(String source,
String newParent)
Move Node identified by source id string to destination specified by newParent id string |
void |
remove(Node node)
Remove the node |
void |
remove(Set<T> things)
Remove the Set of things T |
void |
remove(T thing)
Remove the thing T |
void |
removeAll()
Remove all |
void |
update(Set<T> things)
Update a Set of existing things |
void |
update(T thing)
Update an existing thing |
Method Detail |
---|
Set<T> createObjects(Node[] nodes) throws AuthorizationException
AuthorizationException
Set<T> createObjects(Set<Node> nodes) throws AuthorizationException
AuthorizationException
ObjectClass createObjectClass() throws NoSuchNodeException, RepositoryException, AuthorizationException
NoSuchNodeException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionObjectClass getObjectClass() throws AuthorizationException, NoSuchObjectClassException, RepositoryException
RepositoryException
AuthorizationException
NoSuchObjectClassException
Node getTopNode() throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionV getFolder(ID folderId) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
SortableFilterablePagedResult<T> findManyChildren(String expression) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
SortableFilterablePagedResult<T> findMany(String expression, String[] searchPaths) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
SortableFilterablePagedResult<T> findMany(String expression, String[] searchPaths, SortCriteria[] sortCriteria) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionvoid update(T thing) throws NoSuchNodeException, RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchPropertyException,
InstantiationException, IllegalAccessException, InvocationTargetException,
NodeMapper.NodeMapperException, IOException
NoSuchNodeException
void update(Set<T> things) throws NoSuchNodeException, RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchPropertyException,
InstantiationException, IllegalAccessException, InvocationTargetException,
NodeMapper.NodeMapperException, IOException
NoSuchNodeException
V getTopFolder() throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionvoid removeAll() throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionvoid remove(T thing) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationExceptionvoid remove(Node node) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationExceptionvoid remove(Set<T> things) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps AuthenticationExceptionSet<ContentBase> getImmediateChildren(V parentFolder, ContentControlBase.NodeSearchType type) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
Set<ContentBase> getImmediateChildren(V parentFolder, SortCriteria[] sortCriteria, ContentControlBase.NodeSearchType type) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
SortableFilterablePagedResult<ContentBase> getImmediateChildrenAsPagedResult(Node node, SortCriteria[] sortCriteria, ContentControlBase.NodeSearchType hierarchySearchType) throws AuthorizationException, NoSuchNodeException, RepositoryException
AuthorizationException
NoSuchNodeException
RepositoryException
T move(ID source, ID newParent) throws NoSuchNodeException, RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
NoSuchNodeException
- throws ControlException - unchecked exception that wraps AuthenticationExceptionT move(String source, String newParent) throws NoSuchNodeException, RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
NoSuchNodeException
- throws ControlException - unchecked exception that wraps AuthenticationExceptionT findById(String nodeIdString) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionContentBase findContentById(String nodeIdString) throws RepositoryException, AuthorizationException
RepositoryException
AuthorizationException
- throws ControlException - unchecked exception that wraps InstantiationException, IllegalAccessException,
InvocationTargetException, NodeMapper.NodeMapperException, AuthenticationException, NoSuchNodeExceptionList<PropertyDefinition> getAllPropertyDefinitions() throws AuthorizationException, NoSuchObjectClassException, RepositoryException
AuthorizationException
NoSuchObjectClassException
RepositoryException
String getDefaultStringValue(String propertyName) throws RepositoryException
RepositoryException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |