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,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Determines if a given
NodeRef can be virtualized by this
virtualization method. |
void |
init() |
void |
setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver resolver) |
void |
setQnameFilters(String filters) |
void |
setTemplatesPath(NodeRefExpression templatesPath) |
Reference |
virtualize(ActualEnvironment env,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Applies this virtualizatio rule on a given
NodeRef . |
newVirtualReference, newVirtualReference, newVirtualReference, setVanillaProcessor
public void init()
public void setQnameFilters(String filters)
public void setTemplatesPath(NodeRefExpression templatesPath)
public void setNamespacePrefixResolver(org.alfresco.service.namespace.NamespacePrefixResolver resolver)
public boolean canVirtualize(ActualEnvironment env, org.alfresco.service.cmr.repository.NodeRef nodeRef) throws ActualEnvironmentException
VirtualizationMethod
NodeRef
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
otherwiseActualEnvironmentException
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
Copyright © 2005–2017 Alfresco Software. All rights reserved.