Package com._1c.g5.v8.dt.bm.index.rights
Class InvertedRightsDescription
- java.lang.Object
- 
- com._1c.g5.v8.dt.bm.index.rights.BaseRightsDescription
- 
- com._1c.g5.v8.dt.bm.index.rights.InvertedRightsDescription
 
 
- 
- All Implemented Interfaces:
- IRightsDescription
 
 public class InvertedRightsDescription extends BaseRightsDescription The extension ofBaseRightsDescriptionto store object ids to top object ids map with non default rights.
- 
- 
Field Summary- 
Fields inherited from class com._1c.g5.v8.dt.bm.index.rights.BaseRightsDescriptionobjectsRights, topObjectsWithRls
 
- 
 - 
Constructor SummaryConstructors Constructor Description InvertedRightsDescription(Map<Long,Map<String,Boolean>> objectsRights, Map<Long,Long> objectIdToTopObjectIdProjection, Map<Long,Integer> numberOfCustomRightsSetForNewObjects, Map<Long,Integer> numberOfCustomRightsSetForAttributesByDefault, Map<Long,Integer> numberOfSetRights, Set<Long> topObjectsWithRls, boolean isSetForNewObjects, boolean isSetForAttributesByDefault, boolean isIndependentRightsOfChildObjects)Creates a new instance with the given parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Long,Integer>getNumberOfCustomRightsSetForAttributesByDefault()Returns the number of custom rights among child objects for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag.intgetNumberOfCustomRightsSetForAttributesByDefault(long topObjectId)Returns the number of custom rights among child objects of the specified top object for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag.Map<Long,Integer>getNumberOfCustomRightsSetForNewObjects()Returns the number of custom rights among child objects (include the top object) for which the default right value is determined by "Set rights for new objects" flag.intgetNumberOfCustomRightsSetForNewObjects(long topObjectId)Returns the number of custom rights among child objects (include the specified top object) of the specified top object for which the default right value is determined by "Set rights for new objects" flag.Map<Long,Integer>getNumberOfSetRights()Returns the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag.intgetNumberOfSetRights(long topObjectId)Returns the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag.Map<Long,Long>getObjectIdToTopObjectIdProjection()Gets the projection from object id to its top object id.Set<Long>getTopObjectsWithNonDefaultRights()Gets top objects ids with own non default rights or having descendants with non default rights.Set<Long>getTopObjectsWithRls()Gets the objects that have at least one Rls- 
Methods inherited from class com._1c.g5.v8.dt.bm.index.rights.BaseRightsDescriptiongetObjectIds, getRights, hasTopObjectsRls, isIndependentRightsOfChildObjects, isSetForAttributesByDefault, isSetForNewObjects
 
- 
 
- 
- 
- 
Constructor Detail- 
InvertedRightsDescriptionpublic InvertedRightsDescription(Map<Long,Map<String,Boolean>> objectsRights, Map<Long,Long> objectIdToTopObjectIdProjection, Map<Long,Integer> numberOfCustomRightsSetForNewObjects, Map<Long,Integer> numberOfCustomRightsSetForAttributesByDefault, Map<Long,Integer> numberOfSetRights, 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
- objectIdToTopObjectIdProjection- the projection from object id to its top object id, can not be- null
- numberOfCustomRightsSetForNewObjects- the number of custom rights among child objects (include the top object) for which the default right value is determined by "Set rights for new objects" flag
- numberOfCustomRightsSetForAttributesByDefault- the number of custom rights among child objects for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag
- numberOfSetRights- the number of established rights among child objects (include the top object) for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag
- 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- 
getTopObjectsWithNonDefaultRightspublic Set<Long> getTopObjectsWithNonDefaultRights() Description copied from interface:IRightsDescriptionGets top objects ids with own non default rights or having descendants with non default rights.- Returns:
- the set of top object ids with non default rights, can not be null
 
 - 
getNumberOfCustomRightsSetForNewObjectspublic int getNumberOfCustomRightsSetForNewObjects(long topObjectId) Description copied from interface:IRightsDescriptionReturns the number of custom rights among child objects (include the specified top object) of the specified top object for which the default right value is determined by "Set rights for new objects" flag.- Parameters:
- topObjectId- the top object id to get the number of custom rights among child objects
- Returns:
- the number of custom rights among child objects for which the default right value is determined by "Set rights for new objects" flag
 
 - 
getNumberOfCustomRightsSetForAttributesByDefaultpublic int getNumberOfCustomRightsSetForAttributesByDefault(long topObjectId) Description copied from interface:IRightsDescriptionReturns the number of custom rights among child objects of the specified top object for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag.- Parameters:
- topObjectId- the top object id to get the number of custom rights among child objects
- Returns:
- the number of custom rights among child objects for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag
 
 - 
getNumberOfSetRightspublic int getNumberOfSetRights(long topObjectId) Description copied from interface:IRightsDescriptionReturns the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag.- Parameters:
- topObjectId- the top object id to get the number of set rights among child objects
- Returns:
- the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag
 
 - 
getObjectIdToTopObjectIdProjectionpublic Map<Long,Long> getObjectIdToTopObjectIdProjection() Gets the projection from object id to its top object id.- Returns:
- the projection from object id to its top object id, can not be null
 
 - 
getNumberOfCustomRightsSetForNewObjectspublic Map<Long,Integer> getNumberOfCustomRightsSetForNewObjects() Returns the number of custom rights among child objects (include the top object) for which the default right value is determined by "Set rights for new objects" flag.- Returns:
- the number of custom rights among child objects for which the default right value is determined by
 "Set rights for new objects" flag, never null
 
 - 
getNumberOfCustomRightsSetForAttributesByDefaultpublic Map<Long,Integer> getNumberOfCustomRightsSetForAttributesByDefault() Returns the number of custom rights among child objects for which the default right value is determined by "Set rights for attributes and tabular sections by default" flag.- Returns:
- the number of custom rights among child objects for which the default right value is determined by
 "Set rights for attributes and tabular sections by default" flag, never null
 
 - 
getNumberOfSetRightspublic Map<Long,Integer> getNumberOfSetRights() Returns the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag.- Returns:
- the number of set rights among child objects of the specified top object for which the default right value is not determined by "Set rights for new objects" flag or "Set rights for attributes and tabular sections by default" flag
 
 
- 
 
-