public class CustomVirtualizationMethod extends AspectVirtualizationMethod
AspectVirtualizationMethod that uses an aspect defined repository
association to a node that holds the template contents.namespacePrefixResolverPATH_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, setNamespacePrefixResolvernewVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessorpublic void init()
init in class AspectVirtualizationMethodpublic void setAssociationName(String associationName)
public Reference virtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws VirtualizationException
VirtualizationMethodNodeRef.env - the environment in which the virtualization takes placenodeRef - nodeRef the NodeRef that will be virtualizedReference correspondent of the given NodeRefVirtualizationExceptionpublic boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws ActualEnvironmentException
AspectVirtualizationMethodNodeRef 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 VirtualizationMethodcanVirtualize in class AspectVirtualizationMethodenv - 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 otherwiseActualEnvironmentExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.