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
 
 public abstract class BaseRightsDescription extends Object implements IRightsDescription The base abstract implementation ofIRightsDescriptionto store object rights and top objects that has at least one Rls.- See Also:
- RightsDescription,- InvertedRightsDescription
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Map<Long,Map<String,Boolean>>objectsRightsThe object rightsprotected Set<Long>topObjectsWithRlsThe set of the top object ids that has at least one Rls
 - 
Constructor SummaryConstructors Constructor Description BaseRightsDescription(Map<Long,Map<String,Boolean>> objectsRights, 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 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.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.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.v8.dt.bm.index.rights.IRightsDescriptiongetNumberOfCustomRightsSetForAttributesByDefault, getNumberOfCustomRightsSetForNewObjects, getNumberOfSetRights, getTopObjectsWithNonDefaultRights
 
- 
 
- 
- 
- 
Constructor Detail- 
BaseRightsDescriptionpublic 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- 
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
 
 - 
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
 
 
- 
 
-