public class AlfrescoEnviroment extends Object implements ActualEnvironment
| Constructor and Description |
|---|
AlfrescoEnviroment() |
public void setNodeRefResolver(NodeRefResolver nodeRefResolver)
public void setAlfrescoAPIFacet(AlfrescoAPIFacet apiFacet)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public ServiceRegistry getServiceRegistry()
public void setRepositoryHelper(Repository repository)
public Object executeScript(String classpath, Map<String,Object> model)
executeScript in interface ActualEnvironmentpublic Object executeScript(NodeRef templateNodeRef, Map<String,Object> model)
executeScript in interface ActualEnvironmentpublic boolean hasAspect(NodeRef nodeRef, QName aspectTypeQName)
hasAspect in interface ActualEnvironmentpublic Set<QName> getAspects(NodeRef nodeRef)
getAspects in interface ActualEnvironmentpublic NodeRef getTargetAssocs(NodeRef nodeRef, QName associationQName)
getTargetAssocs in interface ActualEnvironmentpublic Serializable getProperty(NodeRef nodeRef, QName qname)
getProperty in interface ActualEnvironmentpublic Map<QName,Serializable> getProperties(NodeRef nodeRef)
getProperties in interface ActualEnvironmentpublic InputStream openContentStream(NodeRef nodeRef) throws ActualEnvironmentException
openContentStream in interface ActualEnvironmentActualEnvironmentExceptionpublic InputStream openContentStream(String classpath) throws ActualEnvironmentException
openContentStream in interface ActualEnvironmentActualEnvironmentExceptionpublic ResultSet query(SearchParameters searchParameters)
query in interface ActualEnvironmentpublic Object createScriptVirtualContext(VirtualContext context) throws ActualEnvironmentException
createScriptVirtualContext in interface ActualEnvironmentActualEnvironmentExceptionpublic QName getType(NodeRef nodeRef)
getType in interface ActualEnvironmentpublic boolean isSubClass(QName className, QName ofClassName)
isSubClass in interface ActualEnvironmentpublic void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
public NamespacePrefixResolver getNamespacePrefixResolver()
getNamespacePrefixResolver in interface ActualEnvironmentpublic String getCurrentUser()
getCurrentUser in interface ActualEnvironmentpublic Path getPath(NodeRef nodeRef)
getPath in interface ActualEnvironmentpublic ChildAssociationRef getPrimaryParent(NodeRef nodeRef)
getPrimaryParent in interface ActualEnvironmentpublic List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) throws InvalidNodeRefException
getChildAssocs in interface ActualEnvironmentInvalidNodeRefExceptionpublic NodeRef findNodeRef(String referenceType, String[] reference)
findNodeRef in interface ActualEnvironmentpublic boolean exists(NodeRef nodeRef)
exists in interface ActualEnvironmentpublic NodeRef getChildByName(NodeRef nodeRef, QName assocTypeQName, String childName)
getChildByName in interface ActualEnvironmentpublic void delete(NodeRef nodeRef)
delete in interface ActualEnvironmentpublic FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException
create in interface ActualEnvironmentFileExistsExceptionpublic ContentWriter getWriter(NodeRef nodeRef, QName propertyQName, boolean update) throws InvalidNodeRefException, InvalidTypeException
getWriter in interface ActualEnvironmentInvalidNodeRefExceptionInvalidTypeExceptionpublic void addAspect(NodeRef nodeRef, QName aspectTypeQName, Map<QName,Serializable> aspectProperties) throws InvalidNodeRefException, InvalidAspectException
addAspect in interface ActualEnvironmentInvalidNodeRefExceptionInvalidAspectExceptionpublic NodeRef findQNamePath(String[] patheElements)
findQNamePath in interface ActualEnvironmentpublic boolean exists(String classpath)
exists in interface ActualEnvironmentpublic boolean hasPermission(NodeRef nodeRef, String perm)
hasPermission in interface ActualEnvironmentCopyright © 2005–2020 Alfresco Software. All rights reserved.