Package com._1c.g5.v8.dt.bm.index.rights
Class SingleObjectRightsDescription
- java.lang.Object
- 
- com._1c.g5.v8.dt.bm.index.rights.SingleObjectRightsDescription
 
- 
- All Implemented Interfaces:
- IRightsDescription
 
 public class SingleObjectRightsDescription extends Object implements IRightsDescription The implementation ofIRightsDescriptionfor a single object.- See Also:
- BaseRightsDescription
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Map<String,Boolean>objectRightsThe object rights
 - 
Constructor SummaryConstructors Constructor Description SingleObjectRightsDescription(Map<String,Boolean> objectRights, boolean isSetForNewObjects, boolean isSetForAttributesByDefault, boolean isIndependentRightsOfChildObjects)Creates a new instance ofSingleObjectRightsDescriptionfor a single object.SingleObjectRightsDescription(Map<String,Boolean> objectRights, boolean hasRls, boolean isSetForNewObjects, boolean isSetForAttributesByDefault, boolean isIndependentRightsOfChildObjects)Creates a new instance ofSingleObjectRightsDescriptionfor a single top object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.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.Set<Long>getObjectIds()Gets the set of object ids the rights specified for.Map<String,Boolean>getRights(long bmObjectId)Gets the rights of the object.Set<Long>getTopObjectsWithNonDefaultRights()Gets top objects ids with own non default rights or having descendants with non default rights.booleanhasTopObjectsRls(long bmObjectId)Determines whether the object with the given id has at least one Rls.booleanisIndependentRightsOfChildObjects()Gets the value of the 'independentRightsOfChildObjects' flag.booleanisSetForAttributesByDefault()Gets the value of the 'setForAttributesByDefault' flag.booleanisSetForNewObjects()Gets the value of the 'setForNewObjects' flag.
 
- 
- 
- 
Constructor Detail- 
SingleObjectRightsDescriptionpublic SingleObjectRightsDescription(Map<String,Boolean> objectRights, boolean isSetForNewObjects, boolean isSetForAttributesByDefault, boolean isIndependentRightsOfChildObjects) Creates a new instance ofSingleObjectRightsDescriptionfor a single object.- Parameters:
- objectRights- the object rights, can not be- null
- isSetForNewObjects- the 'setForNewObjects' flag
- isSetForAttributesByDefault- the 'setForAttributesByDefault' flag
- isIndependentRightsOfChildObjects- the 'independentRightsOfChildObjects' flag
 
 - 
SingleObjectRightsDescriptionpublic SingleObjectRightsDescription(Map<String,Boolean> objectRights, boolean hasRls, boolean isSetForNewObjects, boolean isSetForAttributesByDefault, boolean isIndependentRightsOfChildObjects) Creates a new instance ofSingleObjectRightsDescriptionfor a single top object.- Parameters:
- objectRights- the object rights, can not be- null
- hasRls- the 'hasRls' flag
- isSetForNewObjects- the 'setForNewObjects' flag
- isSetForAttributesByDefault- the 'setForAttributesByDefault' flag
- isIndependentRightsOfChildObjects- the 'independentRightsOfChildObjects' flag
 
 
- 
 - 
Method Detail- 
getRightspublic Map<String,Boolean> getRights(long bmObjectId) Description copied from interface:IRightsDescriptionGets the rights of the object.- Specified by:
- getRightsin interface- IRightsDescription
- Parameters:
- bmObjectId- the unique identifier of the object rights get for
- Returns:
- the object rights, may be null
 
 - 
getObjectIdspublic Set<Long> getObjectIds() Description copied from interface:IRightsDescriptionGets the set of object ids the rights specified for.- Specified by:
- getObjectIdsin interface- IRightsDescription
- Returns:
- the set of object ids, can not be null
 
 - 
getTopObjectsWithNonDefaultRightspublic Set<Long> getTopObjectsWithNonDefaultRights() Description copied from interface:IRightsDescriptionGets top objects ids with own non default rights or having descendants with non default rights.- Specified by:
- getTopObjectsWithNonDefaultRightsin interface- IRightsDescription
- 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.- Specified by:
- getNumberOfCustomRightsSetForNewObjectsin interface- IRightsDescription
- 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.- Specified by:
- getNumberOfCustomRightsSetForAttributesByDefaultin interface- IRightsDescription
- 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.- Specified by:
- getNumberOfSetRightsin interface- IRightsDescription
- 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
 
 - 
hasTopObjectsRlspublic boolean hasTopObjectsRls(long bmObjectId) Description copied from interface:IRightsDescriptionDetermines whether the object with the given id has at least one Rls.- Specified by:
- hasTopObjectsRlsin interface- IRightsDescription
- Parameters:
- bmObjectId- the unique identifier of the object the 'Has Rls' condition is checked for
- Returns:
- trueif the object has at least one Rls and- falseotherwise
 
 - 
isSetForNewObjectspublic boolean isSetForNewObjects() Description copied from interface:IRightsDescriptionGets the value of the 'setForNewObjects' flag.- Specified by:
- isSetForNewObjectsin interface- IRightsDescription
- Returns:
- trueif the 'setForNewObjects' flag is set and- falseotherwise
 
 - 
isSetForAttributesByDefaultpublic boolean isSetForAttributesByDefault() Description copied from interface:IRightsDescriptionGets the value of the 'setForAttributesByDefault' flag.- Specified by:
- isSetForAttributesByDefaultin interface- IRightsDescription
- Returns:
- trueif the 'setForAttributesByDefault' flag is set and- falseotherwise
 
 - 
isIndependentRightsOfChildObjectspublic boolean isIndependentRightsOfChildObjects() Description copied from interface:IRightsDescriptionGets the value of the 'independentRightsOfChildObjects' flag.- Specified by:
- isIndependentRightsOfChildObjectsin interface- IRightsDescription
- Returns:
- trueif the 'independentRightsOfChildObjects' flag is set and- falseotherwise
 
 
- 
 
-