Package org.alfresco.repo.virtual
Class AlfrescoEnviroment
java.lang.Object
org.alfresco.repo.virtual.AlfrescoEnviroment
- All Implemented Interfaces:
ActualEnvironment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateScriptVirtualContext(VirtualContext context) voidexecuteScript(String classpath, Map<String, Object> model) executeScript(NodeRef templateNodeRef, Map<String, Object> model) booleanbooleanfindNodeRef(String referenceType, String[] reference) findQNamePath(String[] patheElements) getAspects(NodeRef nodeRef) getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName) getPrimaryParent(NodeRef nodeRef) getProperties(NodeRef nodeRef) getProperty(NodeRef nodeRef, QName qname) getTargetAssocs(NodeRef nodeRef, QName associationQName) booleanbooleanhasPermission(NodeRef nodeRef, String perm) booleanisSubClass(QName className, QName ofClassName) openContentStream(String classpath) openContentStream(NodeRef nodeRef) query(SearchParameters searchParameters) voidsetAlfrescoAPIFacet(AlfrescoAPIFacet apiFacet) voidsetNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver) voidsetNodeRefResolver(NodeRefResolver nodeRefResolver) voidsetRepositoryHelper(Repository repository) voidsetServiceRegistry(ServiceRegistry serviceRegistry)
-
Constructor Details
-
AlfrescoEnviroment
public AlfrescoEnviroment()
-
-
Method Details
-
setNodeRefResolver
-
setAlfrescoAPIFacet
-
setServiceRegistry
-
getServiceRegistry
-
setRepositoryHelper
-
executeScript
- Specified by:
executeScriptin interfaceActualEnvironment
-
executeScript
- Specified by:
executeScriptin interfaceActualEnvironment
-
hasAspect
- Specified by:
hasAspectin interfaceActualEnvironment
-
getAspects
- Specified by:
getAspectsin interfaceActualEnvironment
-
getTargetAssocs
- Specified by:
getTargetAssocsin interfaceActualEnvironment
-
getProperty
- Specified by:
getPropertyin interfaceActualEnvironment
-
getProperties
- Specified by:
getPropertiesin interfaceActualEnvironment
-
openContentStream
- Specified by:
openContentStreamin interfaceActualEnvironment- Throws:
ActualEnvironmentException
-
openContentStream
- Specified by:
openContentStreamin interfaceActualEnvironment- Throws:
ActualEnvironmentException
-
query
- Specified by:
queryin interfaceActualEnvironment
-
createScriptVirtualContext
- Specified by:
createScriptVirtualContextin interfaceActualEnvironment- Throws:
ActualEnvironmentException
-
getType
- Specified by:
getTypein interfaceActualEnvironment
-
isSubClass
- Specified by:
isSubClassin interfaceActualEnvironment
-
setNamespacePrefixResolver
-
getNamespacePrefixResolver
- Specified by:
getNamespacePrefixResolverin interfaceActualEnvironment
-
getCurrentUser
- Specified by:
getCurrentUserin interfaceActualEnvironment
-
getPath
- Specified by:
getPathin interfaceActualEnvironment
-
getPrimaryParent
- Specified by:
getPrimaryParentin interfaceActualEnvironment
-
getChildAssocs
public List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) throws InvalidNodeRefException - Specified by:
getChildAssocsin interfaceActualEnvironment- Throws:
InvalidNodeRefException
-
findNodeRef
- Specified by:
findNodeRefin interfaceActualEnvironment
-
exists
- Specified by:
existsin interfaceActualEnvironment
-
getChildByName
- Specified by:
getChildByNamein interfaceActualEnvironment
-
delete
- Specified by:
deletein interfaceActualEnvironment
-
create
public FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException - Specified by:
createin interfaceActualEnvironment- Throws:
FileExistsException
-
getWriter
public ContentWriter getWriter(NodeRef nodeRef, QName propertyQName, boolean update) throws InvalidNodeRefException, InvalidTypeException - Specified by:
getWriterin interfaceActualEnvironment- Throws:
InvalidNodeRefExceptionInvalidTypeException
-
addAspect
public void addAspect(NodeRef nodeRef, QName aspectTypeQName, Map<QName, Serializable> aspectProperties) throws InvalidNodeRefException, InvalidAspectException- Specified by:
addAspectin interfaceActualEnvironment- Throws:
InvalidNodeRefExceptionInvalidAspectException
-
findQNamePath
- Specified by:
findQNamePathin interfaceActualEnvironment
-
exists
- Specified by:
existsin interfaceActualEnvironment
-
hasPermission
- Specified by:
hasPermissionin interfaceActualEnvironment
-