Package org.alfresco.opencmis
Class CMISPropertyBasedVirtualRepository
java.lang.Object
org.alfresco.opencmis.CMISPropertyBasedVirtualRepository
- All Implemented Interfaces:
CMISVirtualRepository
A CMIS Virtual repository which limits the access to the nodes based on a single property value. Only nodes (including root) with the given value are accessible through the CMIS API. This class is not responsible for setting the value of this property.
-
Constructor Summary
ConstructorsConstructorDescriptionCMISPropertyBasedVirtualRepository(NodeService nodeService, NamespacePrefixResolver namespacePrefixResolver, String propertyAspect, String propertyName, String propertyValue) CMISPropertyBasedVirtualRepository(NodeService nodeService, NamespacePrefixResolver namespacePrefixResolver, QName propertyAspect, QName propertyName, String propertyValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyQueryFiltering(CMISQueryOptions options) Allows to apply CMIS query filter.booleanChecks if given node is part of the repository.Allows to apply children listing filter.Allows to indicate that some aspects are required by the implementation of the virtual repository.
-
Constructor Details
-
CMISPropertyBasedVirtualRepository
public CMISPropertyBasedVirtualRepository(NodeService nodeService, NamespacePrefixResolver namespacePrefixResolver, String propertyAspect, String propertyName, String propertyValue) -
CMISPropertyBasedVirtualRepository
public CMISPropertyBasedVirtualRepository(NodeService nodeService, NamespacePrefixResolver namespacePrefixResolver, QName propertyAspect, QName propertyName, String propertyValue)
-
-
Method Details
-
contains
Description copied from interface:CMISVirtualRepositoryChecks if given node is part of the repository.- Specified by:
containsin interfaceCMISVirtualRepository- Parameters:
nodeRef- node's reference- Returns:
trueif given node belongs to the repository,falseotherwise.
-
getChildrenFilteringProperties
Description copied from interface:CMISVirtualRepositoryAllows to apply children listing filter.- Specified by:
getChildrenFilteringPropertiesin interfaceCMISVirtualRepository- Returns:
ListofFilterProp- See Also:
-
applyQueryFiltering
Description copied from interface:CMISVirtualRepositoryAllows to apply CMIS query filter.- Specified by:
applyQueryFilteringin interfaceCMISVirtualRepository- See Also:
-
getRequiredAspects
Description copied from interface:CMISVirtualRepositoryAllows to indicate that some aspects are required by the implementation of the virtual repository. These aspects might be applied outside the CMIS flow and will be retained.- Specified by:
getRequiredAspectsin interfaceCMISVirtualRepository- Returns:
- Set of required aspects
-