Package org.alfresco.repo.virtual
Interface ActualEnvironment
-
- All Known Implementing Classes:
AlfrescoEnviroment
public interface ActualEnvironmentDependency 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
-
-
-
Method Detail
-
getProperty
Serializable getProperty(NodeRef nodeRef, QName qname) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
getProperties
Map<QName,Serializable> getProperties(NodeRef nodeRef)
-
getCurrentUser
String getCurrentUser()
-
getPrimaryParent
ChildAssociationRef getPrimaryParent(NodeRef nodeRef)
-
getChildAssocs
List<ChildAssociationRef> getChildAssocs(NodeRef nodeRef, QNamePattern typeQNamePattern, QNamePattern qnamePattern, int maxResults, boolean preload) throws InvalidNodeRefException
- Throws:
InvalidNodeRefException
-
getNamespacePrefixResolver
NamespacePrefixResolver getNamespacePrefixResolver()
-
openContentStream
InputStream openContentStream(NodeRef nodeRef) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
openContentStream
InputStream openContentStream(String classpath) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
query
ResultSet query(SearchParameters searchParameters)
-
executeScript
Object executeScript(String classpath, Map<String,Object> model) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
executeScript
Object executeScript(NodeRef templateNodeRef, Map<String,Object> model) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
createScriptVirtualContext
Object createScriptVirtualContext(VirtualContext context) throws ActualEnvironmentException
- Throws:
ActualEnvironmentException
-
exists
boolean exists(NodeRef nodeRef)
-
exists
boolean exists(String classpath)
-
delete
void delete(NodeRef nodeRef)
-
create
FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException
- 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
-
-