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
An
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 by
AspectVirtualizationMethod that 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 by
Encodings.PLAIN encoded Reference strings.- Author:
- Bogdan Horje
-
Field Summary
Fields inherited from class org.alfresco.repo.virtual.store.AspectVirtualizationMethod
namespacePrefixResolverFields inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanVirtualize(ActualEnvironment env, 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(String systemPathPropertyName) virtualize(ActualEnvironment env, NodeRef nodeRef) Applies this virtualizatio rule on a givenNodeRef.Methods inherited from class org.alfresco.repo.virtual.store.AspectVirtualizationMethod
getAspectQName, setAspectName, setNamespacePrefixResolverMethods inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
-
Constructor Details
-
SystemVirtualizationMethod
public SystemVirtualizationMethod()
-
-
Method Details
-
init
public void init()Bean initialization.- Overrides:
initin classAspectVirtualizationMethod
-
setSystemPathPropertyName
-
virtualize
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, 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
-