Class AspectVirtualizationMethod

    • Field Detail

      • namespacePrefixResolver

        protected org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver
    • Constructor Detail

      • AspectVirtualizationMethod

        public AspectVirtualizationMethod()
      • AspectVirtualizationMethod

        public AspectVirtualizationMethod​(org.alfresco.service.namespace.QName aspectName)
    • Method Detail

      • init

        public void init()
      • canVirtualize

        public boolean canVirtualize​(ActualEnvironment env,
                                     org.alfresco.service.cmr.repository.NodeRef nodeRef)
                              throws ActualEnvironmentException
        Determines if a given NodeRef can be virtualized by this virtualization method by checking the presence of the of the configured aspect (i.e. aspectQName) on the given NodeRef.
        Parameters:
        env - the environment in which the virtualization should take place
        nodeRef - the NodeRef that should be virtualized
        Returns:
        true if the given NodeRef can be virtualized by this virtualization method (i.e. the configurend aspect is set on the given NodeRef) false otherwise
        Throws:
        VirtualizationException
        ActualEnvironmentException
      • getAspectQName

        protected org.alfresco.service.namespace.QName getAspectQName()
      • setAspectName

        public void setAspectName​(java.lang.String aspectName)
      • setNamespacePrefixResolver

        public void setNamespacePrefixResolver​(org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)