Class CompatAccessMode

  • All Implemented Interfaces:
    org.neo4j.internal.kernel.api.security.AccessMode

    public abstract class CompatAccessMode
    extends org.neo4j.kernel.impl.api.security.RestrictedAccessMode
    The signature for allowsReadNodeProperty is different in 4.0 and 4.1. We have to implement this method, but we don't require the parameter that has changed. All methods that we re-implement on AccessMode have been duplicated in CustomAccessMode. Usages where we need to implement the AccessMode should implement CustomAccessMode instead and then call the Neo4jProxyApi.accessMode(CustomAccessMode) method to get the actual access mode.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.neo4j.internal.kernel.api.security.AccessMode

        org.neo4j.internal.kernel.api.security.AccessMode.Static
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CustomAccessMode custom  
      protected org.neo4j.internal.kernel.api.security.AccessMode original  
      protected org.neo4j.internal.kernel.api.security.AccessMode.Static wrapping  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allowsExecuteAggregatingFunction​(int arg0)  
      boolean allowsExecuteFunction​(int arg0)  
      boolean allowsExecuteProcedure​(int arg0)  
      boolean allowsTraverseAllLabels()  
      boolean allowsTraverseAllNodesWithLabel​(long label)  
      boolean allowsTraverseNode​(long... labels)  
      boolean allowsTraverseRelType​(int relType)  
      boolean isOverridden()  
      org.neo4j.graphdb.security.AuthorizationViolationException onViolation​(java.lang.String arg0)  
      boolean shouldBoostAggregatingFunction​(int arg0)  
      boolean shouldBoostFunction​(int arg0)  
      boolean shouldBoostProcedure​(int arg0)  
      • Methods inherited from class org.neo4j.kernel.impl.api.security.RestrictedAccessMode

        allowsCreateNode, allowsCreateRelationship, allowsDeleteNode, allowsDeleteRelationship, allowsReadNodeProperty, allowsReadPropertyAllLabels, allowsReadPropertyAllRelTypes, allowsReadRelationshipProperty, allowsRemoveLabel, allowsSchemaWrites, allowsSchemaWrites, allowsSeePropertyKeyToken, allowsSetLabel, allowsSetProperty, allowsSetProperty, allowsShowConstraint, allowsShowIndex, allowsTokenCreates, allowsTraverseAllRelTypes, allowsWrites, disallowsReadPropertyForSomeLabel, disallowsTraverseLabel, name, shouldBoostAccessForProcedureWith
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.neo4j.internal.kernel.api.security.AccessMode

        roles
    • Field Detail

      • original

        protected final org.neo4j.internal.kernel.api.security.AccessMode original
      • wrapping

        protected final org.neo4j.internal.kernel.api.security.AccessMode.Static wrapping
    • Constructor Detail

    • Method Detail

      • allowsTraverseAllLabels

        public boolean allowsTraverseAllLabels()
        Specified by:
        allowsTraverseAllLabels in interface org.neo4j.internal.kernel.api.security.AccessMode
        Overrides:
        allowsTraverseAllLabels in class org.neo4j.kernel.impl.api.security.RestrictedAccessMode
      • allowsTraverseAllNodesWithLabel

        public boolean allowsTraverseAllNodesWithLabel​(long label)
        Specified by:
        allowsTraverseAllNodesWithLabel in interface org.neo4j.internal.kernel.api.security.AccessMode
        Overrides:
        allowsTraverseAllNodesWithLabel in class org.neo4j.kernel.impl.api.security.RestrictedAccessMode
      • allowsTraverseNode

        public boolean allowsTraverseNode​(long... labels)
        Specified by:
        allowsTraverseNode in interface org.neo4j.internal.kernel.api.security.AccessMode
        Overrides:
        allowsTraverseNode in class org.neo4j.kernel.impl.api.security.RestrictedAccessMode
      • allowsTraverseRelType

        public boolean allowsTraverseRelType​(int relType)
        Specified by:
        allowsTraverseRelType in interface org.neo4j.internal.kernel.api.security.AccessMode
        Overrides:
        allowsTraverseRelType in class org.neo4j.kernel.impl.api.security.RestrictedAccessMode
      • onViolation

        public org.neo4j.graphdb.security.AuthorizationViolationException onViolation​(java.lang.String arg0)
        Specified by:
        onViolation in interface org.neo4j.internal.kernel.api.security.AccessMode
      • allowsExecuteProcedure

        public boolean allowsExecuteProcedure​(int arg0)
        Specified by:
        allowsExecuteProcedure in interface org.neo4j.internal.kernel.api.security.AccessMode
      • shouldBoostProcedure

        public boolean shouldBoostProcedure​(int arg0)
        Specified by:
        shouldBoostProcedure in interface org.neo4j.internal.kernel.api.security.AccessMode
      • allowsExecuteFunction

        public boolean allowsExecuteFunction​(int arg0)
        Specified by:
        allowsExecuteFunction in interface org.neo4j.internal.kernel.api.security.AccessMode
      • shouldBoostFunction

        public boolean shouldBoostFunction​(int arg0)
        Specified by:
        shouldBoostFunction in interface org.neo4j.internal.kernel.api.security.AccessMode
      • allowsExecuteAggregatingFunction

        public boolean allowsExecuteAggregatingFunction​(int arg0)
        Specified by:
        allowsExecuteAggregatingFunction in interface org.neo4j.internal.kernel.api.security.AccessMode
      • shouldBoostAggregatingFunction

        public boolean shouldBoostAggregatingFunction​(int arg0)
        Specified by:
        shouldBoostAggregatingFunction in interface org.neo4j.internal.kernel.api.security.AccessMode
      • isOverridden

        public boolean isOverridden()
        Specified by:
        isOverridden in interface org.neo4j.internal.kernel.api.security.AccessMode