|
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>
com.bea.apps.groupspace.controls.generic.CM_ControlImpl<Link>
com.bea.apps.groupspace.links.controls.LinksControlImpl
public class LinksControlImpl
This control uses a cache for the link groups. They are keyed off Visibility, Owner, and the Link Group name. If the visibility is COMMUNITY, the owner is assumed to be 'GroupSpace' for generating the key. todo: is this a good idea?
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.bea.apps.groupspace.links.controls.LinksControl |
|---|
LinksControl.Params |
| Nested classes/interfaces inherited from interface com.bea.apps.groupspace.controls.generic.ContentControlBase |
|---|
ContentControlBase.NodeSearchType |
| Field Summary | |
|---|---|
protected com.bea.apps.groupspace.controls.generic.CachedFoldersControl |
cachedFolderControl
|
protected HttpServletRequest |
request
|
| Fields inherited from class com.bea.apps.groupspace.controls.generic.CM_ControlImpl |
|---|
ccCmxControl, folderControl, topNode, topNodeName |
| Fields inherited from class com.bea.apps.groupspace.controls.generic.GroupSpaceContentControlImpl |
|---|
ALL_TYPES, contentContext |
| 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 | |
|---|---|
LinksControlImpl()
|
|
| Method Summary | |
|---|---|
Link |
create(String title,
String url,
String description,
CommunityContent.Visibility visibility)
Create a new Link that will be put in default group folder. |
Link |
create(String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
Create a new Link that has related Community Content. |
Link |
create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility)
Use this ctor for placing node in a particular place in the hierarchy |
Link |
create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes)
Create a new Link that has related Community Content. |
Link |
create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
Create a new Link that has related Community Content. |
Link |
create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility)
Create a new Link, putting it in the named group folder, unless the visibility is personal, in which case it will be ignored. |
Link |
create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes)
Create a new Link that has related Community Content. |
Link |
create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
|
Folder |
createFolder(String name,
ID parentID)
This gives the default visiblity of "COMMUNITY" and owner as the current principal username. |
protected Link |
createObject(Node node)
We're creating Links from a Node |
ObjectClass |
createType()
|
void |
forceRemoveGroup(String groupName)
Remove this link folder and all links beneath it, regardless of ownership. |
protected Folder |
getDefaultFolder(CommunityContent.Visibility visibility)
Determines whether the default folder is the user's personal folder or the top content folder |
Node |
getLinkGroup(String groupName)
Get the Node associated with this link group. |
Set<String> |
getLinkGroupNames()
Get all link group names, or null if there are none. |
Set<Link> |
getLinksInGroup(String groupName,
SortCriteria[] sortCriteria)
Get all the links beneath this group node. |
boolean |
isNameOfExistingGroup(String groupName)
Validate that the group with groupName exists. |
Link |
moveLinkToGroup(Link link,
String groupName)
Move this link to another group |
void |
onCreate()
Put any other init params here. |
void |
removeGroup(String groupName)
Remove this link folder and all links beneath it. |
| Methods inherited from class com.bea.apps.groupspace.controls.generic.CM_ControlImpl |
|---|
getCommunityFolderNode, getFolderByExpression, getPersonalContentFolder, getTopNode, getUserFolder |
| Methods inherited from class com.bea.apps.groupspace.controls.generic.GroupSpaceContentControlImpl |
|---|
asSet, createFolder, findByDescription, findById, findByTitle, findContentById, findMany, getAll, getAllNodes, getCommunity, getCommunityAndPrivate, getCommunityFolder, getFolder, getImmediateChildrenAsPagedResult, getPersonal, getPrivate, getReferencingContent, getReferencingContent, getRelatedContent, move, promoteToCommunity, remove, removeAll, removeCommunityAndPrivate, removePersonal, removePrivate, update |
| Methods inherited from class com.bea.apps.groupspace.controls.generic.ContentControlBaseImpl |
|---|
createObjectClass, createObjects, createObjects, findMany, findManyChildren, getAllChildren, getAllPropertyDefinitions, getDefaultStringValue, 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.CM_Control |
|---|
getPersonalContentFolder |
| Methods inherited from interface com.bea.apps.groupspace.controls.generic.GroupSpaceContentControl |
|---|
asSet, createFolder, findByDescription, findByTitle, getCommunity, getCommunityAndPrivate, getCommunityFolder, getPersonal, getPrivate, getReferencingContent, getReferencingContent, getRelatedContent, promoteToCommunity, removeCommunityAndPrivate, removePersonal, removePrivate |
| 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 |
| Field Detail |
|---|
protected com.bea.apps.groupspace.controls.generic.CachedFoldersControl cachedFolderControl
protected HttpServletRequest request
| Constructor Detail |
|---|
public LinksControlImpl()
| Method Detail |
|---|
public Link create(String title,
String url,
String description,
CommunityContent.Visibility visibility)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
create in interface LinksControltitle - url - description -
NoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
LinksControl
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
LinksControl
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
LinksControl
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
LinksControl
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String title,
String url,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
LinksControl
create in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public Link create(String linkGroup,
String title,
String url,
String urlType,
String description,
CommunityContent.Visibility visibility,
ID[] relatedNodes,
Set<CmxControl.PropertyPair> dynamicProps)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException,
CharacterCodingException
linkGroup - title - url - urlType - description - visibility - relatedNodes - dynamicProps -
NoSuchNodeException
RepositoryException
AuthorizationException
CharacterCodingException
public ObjectClass createType()
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
createType in class ContentControlBaseImpl<Link,Folder>NoSuchNodeException
RepositoryException
AuthorizationException
public void removeGroup(String groupName)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
removeGroup in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException - if private links exist in this group that are not owned by this user
public void forceRemoveGroup(String groupName)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
forceRemoveGroup in interface LinksControlNoSuchNodeException
RepositoryException - if private links exist in this group
AuthorizationException
public boolean isNameOfExistingGroup(String groupName)
throws RepositoryException,
AuthorizationException
isNameOfExistingGroup in interface LinksControlRepositoryException
AuthorizationException
public Set<String> getLinkGroupNames()
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
getLinkGroupNames in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
public Node getLinkGroup(String groupName)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
getLinkGroup in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
public Set<Link> getLinksInGroup(String groupName,
SortCriteria[] sortCriteria)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
getLinksInGroup in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
public Link moveLinkToGroup(Link link,
String groupName)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
moveLinkToGroup in interface LinksControlNoSuchNodeException
RepositoryException
AuthorizationException
public Folder createFolder(String name,
ID parentID)
throws AuthorizationException,
NodeExistsException,
RepositoryException
createFolder in interface GroupSpaceContentControl<Link>createFolder in class CM_ControlImpl<Link>AuthorizationException
NodeExistsException - throws ControlException - unchecked exception that wraps AuthenticationException, NoSuchObjectClassException,
InstantiationException, IllegalAccessException, InvocationTargetException
RepositoryExceptionprotected Link createObject(Node node)
createObject in class ContentControlBaseImpl<Link,Folder>
protected Folder getDefaultFolder(CommunityContent.Visibility visibility)
throws NoSuchNodeException,
RepositoryException,
AuthorizationException
CM_ControlImpl
getDefaultFolder in class CM_ControlImpl<Link>visibility -
NoSuchNodeException
RepositoryException
AuthorizationException
AuthenticationException
public void onCreate()
throws org.apache.beehive.controls.api.ControlException
onCreate in class CM_ControlImpl<Link>org.apache.beehive.controls.api.ControlException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||