Package com._1c.g5.v8.dt.bm.index.rights
Class BaseRightsDescription
java.lang.Object
com._1c.g5.v8.dt.bm.index.rights.BaseRightsDescription
- All Implemented Interfaces:
IRightsDescription
- Direct Known Subclasses:
InvertedRightsDescription,RightsDescription
The base abstract implementation of
IRightsDescription to store object rights and top objects that has
at least one Rls.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe object rightsThe set of the top object ids that has at least one Rls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the set of object ids the rights specified for.getRights(long bmObjectId) Gets the rights of the object.booleanhasTopObjectsRls(long bmObjectId) Determines whether the object with the given id has at least one Rls.booleanGets the value of the 'independentRightsOfChildObjects' flag.booleanGets the value of the 'setForAttributesByDefault' flag.booleanGets the value of the 'setForNewObjects' flag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.bm.index.rights.IRightsDescription
getNumberOfCustomRightsSetForAttributesByDefault, getNumberOfCustomRightsSetForNewObjects, getNumberOfSetRights, getTopObjectsWithNonDefaultRights
-
Field Details
-
objectsRights
The object rights -
topObjectsWithRls
The set of the top object ids that has at least one Rls
-
-
Constructor Details
-
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 benulltopObjectsWithRls- the set of the top object ids that has at least one Rls, can not benullisSetForNewObjects- the 'setForNewObjects' flagisSetForAttributesByDefault- the 'setForAttributesByDefault' flagisIndependentRightsOfChildObjects- the 'independentRightsOfChildObjects' flag
-
-
Method Details
-
getRights
Description copied from interface:IRightsDescriptionGets the rights of the object.- Specified by:
getRightsin interfaceIRightsDescription- Parameters:
bmObjectId- the unique identifier of the object rights get for- Returns:
- the object rights, may be
null
-
getObjectIds
Description copied from interface:IRightsDescriptionGets the set of object ids the rights specified for.- Specified by:
getObjectIdsin interfaceIRightsDescription- Returns:
- the set of object ids, can not be
null
-
hasTopObjectsRls
public boolean hasTopObjectsRls(long bmObjectId) Description copied from interface:IRightsDescriptionDetermines whether the object with the given id has at least one Rls.- Specified by:
hasTopObjectsRlsin interfaceIRightsDescription- Parameters:
bmObjectId- the unique identifier of the object the 'Has Rls' condition is checked for- Returns:
trueif the object has at least one Rls andfalseotherwise
-
isSetForNewObjects
public boolean isSetForNewObjects()Description copied from interface:IRightsDescriptionGets the value of the 'setForNewObjects' flag.- Specified by:
isSetForNewObjectsin interfaceIRightsDescription- Returns:
trueif the 'setForNewObjects' flag is set andfalseotherwise
-
isSetForAttributesByDefault
public boolean isSetForAttributesByDefault()Description copied from interface:IRightsDescriptionGets the value of the 'setForAttributesByDefault' flag.- Specified by:
isSetForAttributesByDefaultin interfaceIRightsDescription- Returns:
trueif the 'setForAttributesByDefault' flag is set andfalseotherwise
-
isIndependentRightsOfChildObjects
public boolean isIndependentRightsOfChildObjects()Description copied from interface:IRightsDescriptionGets the value of the 'independentRightsOfChildObjects' flag.- Specified by:
isIndependentRightsOfChildObjectsin interfaceIRightsDescription- Returns:
trueif the 'independentRightsOfChildObjects' flag is set andfalseotherwise
-