public class CustomVirtualizationMethod extends AspectVirtualizationMethod
AspectVirtualizationMethod
that uses an aspect defined repository
association to a node that holds the template contents.namespacePrefixResolver
PATH_SEPARATOR
Constructor and Description |
---|
CustomVirtualizationMethod() |
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. |
void |
init()
Bean initialization.
|
void |
setAssociationName(String associationName) |
Reference |
virtualize(ActualEnvironment env,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Applies this virtualizatio rule on a given
NodeRef . |
getAspectQName, setAspectName, setNamespacePrefixResolver
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
public void init()
init
in class AspectVirtualizationMethod
public void setAssociationName(String associationName)
public Reference virtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws VirtualizationException
VirtualizationMethod
NodeRef
.env
- the environment in which the virtualization takes placenodeRef
- nodeRef the NodeRef
that will be virtualizedReference
correspondent of the given NodeRef
VirtualizationException
public boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws ActualEnvironmentException
AspectVirtualizationMethod
NodeRef
can be virtualized by this
virtualization method by checking the presence of the of the configured
aspect (i.e. AspectVirtualizationMethod.aspectQName
) on the given NodeRef
.canVirtualize
in interface VirtualizationMethod
canVirtualize
in class AspectVirtualizationMethod
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
otherwiseActualEnvironmentException
Copyright © 2005–2017 Alfresco Software. All rights reserved.