Class BaseRightsDescription

    • Field Detail

      • topObjectsWithRls

        protected Set<Long> topObjectsWithRls
        The set of the top object ids that has at least one Rls
    • Constructor Detail

      • BaseRightsDescription

        public BaseRightsDescription​(Map<Long,​Map<String,​Boolean>> objectsRights,
                                     Set<Long> topObjectsWithRls,
                                     boolean isSetForNewObjects,
                                     boolean isSetForAttributesByDefault,
                                     boolean isIndependentRightsOfChildObjects)
        Creates a new instance with the given parameters.
        Parameters:
        objectsRights - the objects rights , can not be null
        topObjectsWithRls - the set of the top object ids that has at least one Rls, can not be null
        isSetForNewObjects - the 'setForNewObjects' flag
        isSetForAttributesByDefault - the 'setForAttributesByDefault' flag
        isIndependentRightsOfChildObjects - the 'independentRightsOfChildObjects' flag
    • Method Detail

      • getRights

        public Map<String,​Boolean> getRights​(long bmObjectId)
        Description copied from interface: IRightsDescription
        Gets the rights of the object.
        Specified by:
        getRights in interface IRightsDescription
        Parameters:
        bmObjectId - the unique identifier of the object rights get for
        Returns:
        the object rights, may be null
      • hasTopObjectsRls

        public boolean hasTopObjectsRls​(long bmObjectId)
        Description copied from interface: IRightsDescription
        Determines whether the object with the given id has at least one Rls.
        Specified by:
        hasTopObjectsRls in interface IRightsDescription
        Parameters:
        bmObjectId - the unique identifier of the object the 'Has Rls' condition is checked for
        Returns:
        true if the object has at least one Rls and false otherwise
      • isSetForNewObjects

        public boolean isSetForNewObjects()
        Description copied from interface: IRightsDescription
        Gets the value of the 'setForNewObjects' flag.
        Specified by:
        isSetForNewObjects in interface IRightsDescription
        Returns:
        true if the 'setForNewObjects' flag is set and false otherwise
      • isSetForAttributesByDefault

        public boolean isSetForAttributesByDefault()
        Description copied from interface: IRightsDescription
        Gets the value of the 'setForAttributesByDefault' flag.
        Specified by:
        isSetForAttributesByDefault in interface IRightsDescription
        Returns:
        true if the 'setForAttributesByDefault' flag is set and false otherwise
      • isIndependentRightsOfChildObjects

        public boolean isIndependentRightsOfChildObjects()
        Description copied from interface: IRightsDescription
        Gets the value of the 'independentRightsOfChildObjects' flag.
        Specified by:
        isIndependentRightsOfChildObjects in interface IRightsDescription
        Returns:
        true if the 'independentRightsOfChildObjects' flag is set and false otherwise