public abstract class AspectVirtualizationMethod extends TemplateVirtualizationMethod
QName
to be used in resolving templates by querying
aspect defined meta data from the virtualized NodeRef
.Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.namespace.NamespacePrefixResolver |
namespacePrefixResolver |
PATH_SEPARATOR
Constructor and Description |
---|
AspectVirtualizationMethod() |
AspectVirtualizationMethod(org.alfresco.service.namespace.QName aspectName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canVirtualize(ActualEnvironment env,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Determines if a given
NodeRef can be virtualized by this
virtualization method by checking the presence of the of the configured
aspect (i.e. |
protected org.alfresco.service.namespace.QName |
getAspectQName() |
void |
init() |
void |
setAspectName(String aspectName) |
void |
setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver) |
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
virtualize
protected org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver
public AspectVirtualizationMethod()
public AspectVirtualizationMethod(org.alfresco.service.namespace.QName aspectName)
public void init()
public boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws ActualEnvironmentException
NodeRef
can be virtualized by this
virtualization method by checking the presence of the of the configured
aspect (i.e. aspectQName
) on the given NodeRef
.env
- the environment in which the virtualization should take placenodeRef
- the NodeRef
that should be virtualizedtrue
if the given NodeRef
can be virtualized
by this virtualization method (i.e. the configurend aspect is set
on the given NodeRef
) false
otherwiseVirtualizationException
ActualEnvironmentException
protected org.alfresco.service.namespace.QName getAspectQName()
public void setAspectName(String aspectName)
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
Copyright © 2005–2017 Alfresco Software. All rights reserved.