public class Repository extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
Repository() |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
findNodeRef(String referenceType,
String[] reference)
Helper to convert a Web Script Request URL to a Node Ref
1) Node - {store_type}/{store_id}/{node_id}
Resolve to node via its Node Reference. |
org.alfresco.service.cmr.repository.NodeRef |
getCompanyHome()
Gets the Company Home.
|
org.alfresco.service.cmr.repository.NodeRef |
getFullyAuthenticatedPerson()
Gets the currently fully authenticated person,
Excludes any overlay authentication set by runas
|
org.alfresco.service.cmr.repository.NodeRef |
getPerson()
Gets the currently authenticated person
Includes any overlay authentication set by runas
|
org.alfresco.service.cmr.repository.NodeRef |
getRootHome()
Gets the root home of the company home store
|
org.alfresco.service.cmr.repository.NodeRef |
getSharedHome()
Gets the Shared Home.
|
org.alfresco.service.cmr.repository.NodeRef |
getUserHome(org.alfresco.service.cmr.repository.NodeRef person)
Gets the user home of the currently authenticated person
|
protected void |
initContext()
Initialise Repository Context
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCompanyHomePath(String companyHomePath)
Sets the Company Home Path
|
void |
setCompanyHomeStore(String companyHomeStore)
Sets the Company Home Store
|
void |
setFileFolderService(FileFolderService fileFolderService)
Sets the file folder service
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service
|
void |
setPersonService(PersonService personService)
Sets the person service
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Sets the search service
|
void |
setSharedHomePath(String sharedHomePath)
Sets the Shared Home Path
|
void |
setSingletonCache(org.alfresco.repo.cache.SimpleCache<String,org.alfresco.service.cmr.repository.NodeRef> singletonCache) |
void |
setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
Sets helper that provides transaction callbacks
|
public void setCompanyHomeStore(String companyHomeStore)
companyHomeStore
- Stringpublic void setCompanyHomePath(String companyHomePath)
companyHomePath
- Stringpublic void setSharedHomePath(String sharedHomePath)
sharedHomePath
- Stringpublic void setSingletonCache(org.alfresco.repo.cache.SimpleCache<String,org.alfresco.service.cmr.repository.NodeRef> singletonCache)
public void setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setFileFolderService(FileFolderService fileFolderService)
public void setPersonService(PersonService personService)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
protected void initContext()
public org.alfresco.service.cmr.repository.NodeRef getRootHome()
public org.alfresco.service.cmr.repository.NodeRef getCompanyHome()
public org.alfresco.service.cmr.repository.NodeRef getSharedHome()
public org.alfresco.service.cmr.repository.NodeRef getPerson()
public org.alfresco.service.cmr.repository.NodeRef getFullyAuthenticatedPerson()
public org.alfresco.service.cmr.repository.NodeRef getUserHome(org.alfresco.service.cmr.repository.NodeRef person)
person
- personpublic org.alfresco.service.cmr.repository.NodeRef findNodeRef(String referenceType, String[] reference)
referenceType
- one of node, path or qnameCopyright © 2005–2017 Alfresco Software. All rights reserved.