Package org.alfresco.repo.virtual.store
Class AspectVirtualizationMethod
java.lang.Object
org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
org.alfresco.repo.virtual.store.AspectVirtualizationMethod
- All Implemented Interfaces:
VirtualizationMethod
- Direct Known Subclasses:
CustomVirtualizationMethod,SystemVirtualizationMethod
A template virtualization rule implementation that uses Alfresco-aspect defined meta-data for locating templates.
Stores the aspect
Stores the aspect
QName to be used in resolving templates by querying aspect defined meta data from the virtualized NodeRef.- Author:
- Bogdan Horje
-
Field Summary
FieldsFields 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.protected QNamevoidinit()voidsetAspectName(String aspectName) voidsetNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver) Methods inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.repo.virtual.store.VirtualizationMethod
virtualize
-
Field Details
-
namespacePrefixResolver
-
-
Constructor Details
-
AspectVirtualizationMethod
public AspectVirtualizationMethod() -
AspectVirtualizationMethod
-
-
Method Details
-
init
public void init() -
canVirtualize
public boolean canVirtualize(ActualEnvironment env, NodeRef nodeRef) throws ActualEnvironmentException Determines if a givenNodeRefcan be virtualized by this virtualization method by checking the presence of the of the configured aspect (i.e.aspectQName) on the givenNodeRef.- 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:
VirtualizationExceptionActualEnvironmentException
-
getAspectQName
-
setAspectName
-
setNamespacePrefixResolver
-