public class TypeVirtualizationMethod extends TemplateVirtualizationMethod
QName prefixed string form is associated with a
vanilla template that has the same name as the type or aspect prefixed name
with ':' replaced by '_' and it is .json postfixed. The template
is located at predefined templates repository path. Data Dictionary/Virtual Folders the cm:author
aspect will be associated with a vanilla template found by the
Data Dictionary/Virtual Folders/cm_author.json path. QName prefix set by setting a comma separated list of
accepted prefixes through #setAspectPrefixFilter(String).PATH_SEPARATOR| Constructor and Description |
|---|
TypeVirtualizationMethod() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canVirtualize(ActualEnvironment env,
NodeRef nodeRef)
Determines if a given
NodeRef can be virtualized by this
virtualization method. |
void |
init() |
void |
setNamespacePrefixResolver(NamespacePrefixResolver resolver) |
void |
setQnameFilters(String filters) |
void |
setTemplatesPath(NodeRefExpression templatesPath) |
Reference |
virtualize(ActualEnvironment env,
NodeRef nodeRef)
Applies this virtualizatio rule on a given
NodeRef. |
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessorpublic void init()
public void setQnameFilters(String filters)
public void setTemplatesPath(NodeRefExpression templatesPath)
public void setNamespacePrefixResolver(NamespacePrefixResolver resolver)
public boolean canVirtualize(ActualEnvironment env, NodeRef nodeRef) throws ActualEnvironmentException
VirtualizationMethodNodeRef can be virtualized by this
virtualization method.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 methodfalse otherwiseActualEnvironmentExceptionpublic Reference virtualize(ActualEnvironment env, 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 NodeRefVirtualizationExceptionCopyright © 2005–2020 Alfresco Software. All rights reserved.