Class NodeBrowserPost
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.repo.web.scripts.admin.NodeBrowserPost
-
- All Implemented Interfaces:
Serializable
,org.springframework.extensions.webscripts.WebScript
public class NodeBrowserPost extends org.springframework.extensions.webscripts.DeclarativeWebScript implements Serializable
Admin Console NodeBrowser WebScript POST controller.Implements a low-level node browser client for the Admin Console tool.
- Since:
- 5.1
- Author:
- Kevin Roast
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NodeBrowserPost.Aspect
Aspect wrapper classclass
NodeBrowserPost.Association
Association wrapper classclass
NodeBrowserPost.ChildAssociation
Child assoc wrapper classclass
NodeBrowserPost.ChildAssocRefWrapper
Wrapper to resolve Assoc Type and QName to short form with resolved prefixclass
NodeBrowserPost.Node
Node wrapper classstatic class
NodeBrowserPost.NoReadPermissionGranted
Permission representing the fact that "Read Permissions" has not been grantedstatic class
NodeBrowserPost.NoStoreMask
class
NodeBrowserPost.PeerAssociation
Peer assoc wrapper classstatic class
NodeBrowserPost.Permission
Permission beanclass
NodeBrowserPost.Property
Property wrapper classclass
NodeBrowserPost.QNameBean
Qname wrapper class
-
Constructor Summary
Constructors Constructor Description NodeBrowserPost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
List<NodeBrowserPost.Aspect>
getAspects(NodeRef nodeRef)
Gets the current node aspectsList<NodeBrowserPost.PeerAssociation>
getAssocs(NodeRef nodeRef)
Gets the current node associationsprotected CheckOutCheckInService
getCheckOutCheckInService()
List<NodeBrowserPost.ChildAssociation>
getChildren(NodeRef nodeRef)
Gets the current node childrenprotected DictionaryService
getDictionaryService()
boolean
getInheritPermissions(NodeRef nodeRef)
Gets whether the current node inherits its permissions from a parent nodeprotected LockService
getLockService()
protected NamespaceService
getNamespaceService()
protected NodeService
getNodeService()
QName
getNodeType(NodeRef nodeRef)
Gets the current node typeprotected OwnableService
getOwnableService()
List<NodeBrowserPost.ChildAssociation>
getParents(NodeRef nodeRef)
Gets the current node parentsList<NodeBrowserPost.Permission>
getPermissions(NodeRef nodeRef)
Gets the current node permissionsprotected PermissionService
getPermissionService()
NodeRef
getPrimaryParent(NodeRef nodeRef)
Gets the current node primary parent referenceString
getPrimaryPath(NodeRef nodeRef)
Gets the current node primary pathString
getPrimaryPrefixedPath(NodeRef nodeRef)
Gets the current node primary pathList<NodeBrowserPost.Property>
getProperties(NodeRef nodeRef)
Gets the current node propertiesprotected SearchService
getSearchService()
List<NodeBrowserPost.PeerAssociation>
getSourceAssocs(NodeRef nodeRef)
Gets the current source associationsList<NodeBrowserPost.Permission>
getStorePermissionMasks(NodeRef nodeRef)
Gets the current node permissionsList<StoreRef>
getStores()
Gets the list of repository storesprotected TransactionService
getTransactionService()
void
setCheckOutCheckInService(CheckOutCheckInService cociService)
void
setDictionaryService(DictionaryService dictionaryService)
void
setLockService(LockService lockService)
void
setNamespaceService(NamespaceService namespaceService)
void
setNodeService(NodeService nodeService)
void
setOwnableService(OwnableService ownableService)
void
setPermissionService(PermissionService permissionService)
void
setSearchService(SearchService searchService)
void
setTransactionService(TransactionService transactionService)
-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Method Detail
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Parameters:
transactionService
- transaction service
-
getTransactionService
protected TransactionService getTransactionService()
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService
- node service
-
getNodeService
protected NodeService getNodeService()
-
setSearchService
public void setSearchService(SearchService searchService)
- Parameters:
searchService
- search service
-
getSearchService
protected SearchService getSearchService()
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
- Parameters:
dictionaryService
- dictionary service
-
getDictionaryService
protected DictionaryService getDictionaryService()
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
- Parameters:
namespaceService
- namespace service
-
getNamespaceService
protected NamespaceService getNamespaceService()
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
- Parameters:
permissionService
- permission service
-
getPermissionService
protected PermissionService getPermissionService()
-
setOwnableService
public void setOwnableService(OwnableService ownableService)
-
getOwnableService
protected OwnableService getOwnableService()
-
setLockService
public void setLockService(LockService lockService)
-
getLockService
protected LockService getLockService()
-
setCheckOutCheckInService
public void setCheckOutCheckInService(CheckOutCheckInService cociService)
-
getCheckOutCheckInService
protected CheckOutCheckInService getCheckOutCheckInService()
-
getNodeType
public QName getNodeType(NodeRef nodeRef)
Gets the current node type- Returns:
- node type
-
getPrimaryPath
public String getPrimaryPath(NodeRef nodeRef)
Gets the current node primary path- Returns:
- primary path
-
getPrimaryPrefixedPath
public String getPrimaryPrefixedPath(NodeRef nodeRef)
Gets the current node primary path- Returns:
- primary path
-
getPrimaryParent
public NodeRef getPrimaryParent(NodeRef nodeRef)
Gets the current node primary parent reference- Returns:
- primary parent ref
-
getAspects
public List<NodeBrowserPost.Aspect> getAspects(NodeRef nodeRef)
Gets the current node aspects- Returns:
- node aspects
-
getParents
public List<NodeBrowserPost.ChildAssociation> getParents(NodeRef nodeRef)
Gets the current node parents- Returns:
- node parents
-
getProperties
public List<NodeBrowserPost.Property> getProperties(NodeRef nodeRef)
Gets the current node properties- Returns:
- properties
-
getInheritPermissions
public boolean getInheritPermissions(NodeRef nodeRef)
Gets whether the current node inherits its permissions from a parent node- Returns:
- true => inherits permissions
-
getPermissions
public List<NodeBrowserPost.Permission> getPermissions(NodeRef nodeRef)
Gets the current node permissions- Returns:
- the permissions
-
getStorePermissionMasks
public List<NodeBrowserPost.Permission> getStorePermissionMasks(NodeRef nodeRef)
Gets the current node permissions- Returns:
- the permissions
-
getChildren
public List<NodeBrowserPost.ChildAssociation> getChildren(NodeRef nodeRef)
Gets the current node children- Returns:
- node children
-
getAssocs
public List<NodeBrowserPost.PeerAssociation> getAssocs(NodeRef nodeRef)
Gets the current node associations- Returns:
- associations
-
getSourceAssocs
public List<NodeBrowserPost.PeerAssociation> getSourceAssocs(NodeRef nodeRef)
Gets the current source associations- Returns:
- associations
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
- Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
-