Package org.alfresco.repo.virtual
Interface ActualEnvironment
- All Known Implementing Classes:
AlfrescoEnviroment
public interface ActualEnvironment
Dependency inversion facade of the Alfresco repository environment. It offers
an interface to Alfresco repository capabilities needed for virtualization.
Implementors should consider loose repository beans coupling when
implementing the environment operations.
- Author:
- Bogdan Horje
-
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 aspectTypeQName) booleanbooleanhasPermission(NodeRef nodeRef, String perm) booleanisSubClass(QName className, QName ofClassName) openContentStream(String classpath) openContentStream(NodeRef nodeRef) query(SearchParameters searchParameters)
-
Method Details
-
getType
-
isSubClass
-
getTargetAssocs
-
getProperty
- Throws:
ActualEnvironmentException
-
getProperties
-
hasAspect
-
getAspects
-
getCurrentUser
String getCurrentUser() -
getPath
-
getPrimaryParent
-
getChildAssocs
List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) throws InvalidNodeRefException - Throws:
InvalidNodeRefException
-
getChildByName
-
getNamespacePrefixResolver
NamespacePrefixResolver getNamespacePrefixResolver() -
openContentStream
- Throws:
ActualEnvironmentException
-
openContentStream
- Throws:
ActualEnvironmentException
-
query
-
executeScript
- Throws:
ActualEnvironmentException
-
executeScript
Object executeScript(NodeRef templateNodeRef, Map<String, Object> model) throws ActualEnvironmentException- Throws:
ActualEnvironmentException
-
createScriptVirtualContext
- Throws:
ActualEnvironmentException
-
findNodeRef
-
findQNamePath
-
exists
-
exists
-
delete
-
create
- Throws:
FileExistsException
-
getWriter
ContentWriter getWriter(NodeRef nodeRef, QName propertyQName, boolean update) throws InvalidNodeRefException, InvalidTypeException -
addAspect
void addAspect(NodeRef nodeRef, QName aspectTypeQName, Map<QName, Serializable> aspectProperties) throws InvalidNodeRefException, InvalidAspectException -
hasPermission
-