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
public abstract class AspectVirtualizationMethod extends TemplateVirtualizationMethod
A template virtualization rule implementation that uses Alfresco-aspect defined meta-data for locating templates.
Stores the aspectQNameto be used in resolving templates by querying aspect defined meta data from the virtualizedNodeRef.- Author:
- Bogdan Horje
-
-
Field Summary
Fields Modifier and Type Field Description protected org.alfresco.service.namespace.NamespacePrefixResolvernamespacePrefixResolver-
Fields inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description AspectVirtualizationMethod()AspectVirtualizationMethod(org.alfresco.service.namespace.QName aspectName)
-
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.protected org.alfresco.service.namespace.QNamegetAspectQName()voidinit()voidsetAspectName(java.lang.String aspectName)voidsetNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)-
Methods inherited from class org.alfresco.repo.virtual.store.TemplateVirtualizationMethod
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.virtual.store.VirtualizationMethod
virtualize
-
-
-
-
Method Detail
-
init
public void init()
-
canVirtualize
public boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.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
protected org.alfresco.service.namespace.QName getAspectQName()
-
setAspectName
public void setAspectName(java.lang.String aspectName)
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
-
-