public class SystemVirtualizationMethod extends AspectVirtualizationMethod
AspectVirtualizationMethod that uses an aspect defined String
property that holds the system path of a template resource.Encodings.PLAIN encoded
Reference strings.namespacePrefixResolverPATH_SEPARATOR| Constructor and Description |
|---|
SystemVirtualizationMethod() |
| 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 |
setSystemPathPropertyName(String systemPathPropertyName) |
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 setSystemPathPropertyName(String systemPathPropertyName)
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.