public class Repository extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
Repository() |
| Modifier and Type | Method and Description |
|---|---|
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. |
NodeRef |
getCompanyHome()
Gets the Company Home.
|
NodeRef |
getFullyAuthenticatedPerson()
Gets the currently fully authenticated person,
Excludes any overlay authentication set by runas
|
NodeRef |
getGuestHome()
Gets the Guest Home.
|
NodeRef |
getPerson()
Gets the currently authenticated person
Includes any overlay authentication set by runas
|
NodeRef |
getRootHome()
Gets the root home of the company home store
|
NodeRef |
getSharedHome()
Gets the Shared Home.
|
NodeRef |
getUserHome(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 |
setGuestHomePath(String guestHomePath) |
void |
setNamespaceService(NamespaceService namespaceService)
Sets the namespace service
|
void |
setNodeService(NodeService nodeService)
Sets the node service
|
void |
setPersonService(PersonService personService)
Sets the person service
|
void |
setSearchService(SearchService searchService)
Sets the search service
|
void |
setSharedHomePath(String sharedHomePath)
Sets the Shared Home Path
|
void |
setSingletonCache(SimpleCache<String,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(SimpleCache<String,NodeRef> singletonCache)
public void setGuestHomePath(String guestHomePath)
public void setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
public void setNamespaceService(NamespaceService namespaceService)
public void setSearchService(SearchService searchService)
public void setNodeService(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.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
protected void initContext()
public NodeRef getRootHome()
public NodeRef getCompanyHome()
public NodeRef getGuestHome()
public NodeRef getSharedHome()
public NodeRef getPerson()
public NodeRef getFullyAuthenticatedPerson()
public NodeRef getUserHome(NodeRef person)
person - personpublic NodeRef findNodeRef(String referenceType, String[] reference)
referenceType - one of node, path or qnameCopyright © 2005–2021 Alfresco Software. All rights reserved.