Package org.alfresco.repo.virtual.store
Class SystemVirtualizationMethod
- java.lang.Object
-
- org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
-
- org.alfresco.repo.virtual.store.AspectVirtualizationMethod
-
- org.alfresco.repo.virtual.store.SystemVirtualizationMethod
-
- All Implemented Interfaces:
VirtualizationMethod
public class SystemVirtualizationMethod extends AspectVirtualizationMethod
AnAspectVirtualizationMethodthat uses an aspect defined String property that holds the system path of a template resource.
System paths are custom string reference of a resource that can be located either in the repository or in the java classpath - system paths are deprecated and they will be replaced byEncodings.PLAINencodedReferencestrings.- Author:
- Bogdan Horje
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.virtual.store.AspectVirtualizationMethod
namespacePrefixResolver
-
Fields inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description SystemVirtualizationMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef)Determines if a givenNodeRefcan be virtualized by this virtualization method by checking the presence of the of the configured aspect (i.e.voidinit()Bean initialization.voidsetSystemPathPropertyName(java.lang.String systemPathPropertyName)Referencevirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef)Applies this virtualizatio rule on a givenNodeRef.-
Methods inherited from class org.alfresco.repo.virtual.store.AspectVirtualizationMethod
getAspectQName, setAspectName, setNamespacePrefixResolver
-
Methods inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
-
-
-
-
Method Detail
-
init
public void init()
Bean initialization.- Overrides:
initin classAspectVirtualizationMethod
-
setSystemPathPropertyName
public void setSystemPathPropertyName(java.lang.String systemPathPropertyName)
-
virtualize
public Reference virtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws VirtualizationException
Description copied from interface:VirtualizationMethodApplies this virtualizatio rule on a givenNodeRef.- Parameters:
env- the environment in which the virtualization takes placenodeRef- nodeRef theNodeRefthat will be virtualized- Returns:
- a
Referencecorrespondent of the givenNodeRef - Throws:
VirtualizationException
-
canVirtualize
public boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws ActualEnvironmentException
Description copied from class:AspectVirtualizationMethodDetermines if a givenNodeRefcan be virtualized by this virtualization method by checking the presence of the of the configured aspect (i.e.AspectVirtualizationMethod.aspectQName) on the givenNodeRef.- Specified by:
canVirtualizein interfaceVirtualizationMethod- Overrides:
canVirtualizein classAspectVirtualizationMethod- Parameters:
env- the environment in which the virtualization should take placenodeRef- theNodeRefthat should be virtualized- Returns:
trueif the givenNodeRefcan be virtualized by this virtualization method (i.e. the configurend aspect is set on the givenNodeRef)falseotherwise- Throws:
ActualEnvironmentException
-
-