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 classNodeBrowserPost.AspectAspect wrapper classclassNodeBrowserPost.AssociationAssociation wrapper classclassNodeBrowserPost.ChildAssociationChild assoc wrapper classclassNodeBrowserPost.ChildAssocRefWrapperWrapper to resolve Assoc Type and QName to short form with resolved prefixclassNodeBrowserPost.NodeNode wrapper classstatic classNodeBrowserPost.NoReadPermissionGrantedPermission representing the fact that "Read Permissions" has not been grantedstatic classNodeBrowserPost.NoStoreMaskclassNodeBrowserPost.PeerAssociationPeer assoc wrapper classstatic classNodeBrowserPost.PermissionPermission beanclassNodeBrowserPost.PropertyProperty wrapper classclassNodeBrowserPost.QNameBeanQname 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 CheckOutCheckInServicegetCheckOutCheckInService()List<NodeBrowserPost.ChildAssociation>getChildren(NodeRef nodeRef)Gets the current node childrenprotected DictionaryServicegetDictionaryService()booleangetInheritPermissions(NodeRef nodeRef)Gets whether the current node inherits its permissions from a parent nodeprotected LockServicegetLockService()protected NamespaceServicegetNamespaceService()protected NodeServicegetNodeService()QNamegetNodeType(NodeRef nodeRef)Gets the current node typeprotected OwnableServicegetOwnableService()List<NodeBrowserPost.ChildAssociation>getParents(NodeRef nodeRef)Gets the current node parentsList<NodeBrowserPost.Permission>getPermissions(NodeRef nodeRef)Gets the current node permissionsprotected PermissionServicegetPermissionService()NodeRefgetPrimaryParent(NodeRef nodeRef)Gets the current node primary parent referenceStringgetPrimaryPath(NodeRef nodeRef)Gets the current node primary pathStringgetPrimaryPrefixedPath(NodeRef nodeRef)Gets the current node primary pathList<NodeBrowserPost.Property>getProperties(NodeRef nodeRef)Gets the current node propertiesprotected SearchServicegetSearchService()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 TransactionServicegetTransactionService()voidsetCheckOutCheckInService(CheckOutCheckInService cociService)voidsetDictionaryService(DictionaryService dictionaryService)voidsetLockService(LockService lockService)voidsetNamespaceService(NamespaceService namespaceService)voidsetNodeService(NodeService nodeService)voidsetOwnableService(OwnableService ownableService)voidsetPermissionService(PermissionService permissionService)voidsetSearchService(SearchService searchService)voidsetTransactionService(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:
executeImplin classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
-