Package com._1c.g5.v8.dt.bm.index.rights
Interface IBmRightsIndexProvider
- All Known Implementing Classes:
BmRightsIndexProvider
public interface IBmRightsIndexProvider
Service that manages the rights index lifecycle.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearIndexForObject(long bmObjectId) Clears index from obsolete data for the object that supports rights.voidclearIndexForRole(long roleBmId) Clears index from obsolete data for the role.Gets the full rights index for all roles.getRightsDescriptorForRole(long bmRoleId) Gets the BM object-related rights descriptor for a role.getRoleIndex(org.eclipse.emf.ecore.EObject role) Gets the rights index for the given role.voidupdateIndexForObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EObject role, IRightsDescription updatedRightsIndex) Updates rights index for the given role and object that supports rights.voidupdateIndexForRole(org.eclipse.emf.ecore.EObject role, IRightsDescription updatedRightsIndex) Updates rights index for the given role.
-
Method Details
-
clearIndexForRole
void clearIndexForRole(long roleBmId) Clears index from obsolete data for the role.- Parameters:
roleBmId- the role BM Id to remove index for
-
clearIndexForObject
void clearIndexForObject(long bmObjectId) Clears index from obsolete data for the object that supports rights.- Parameters:
bmObjectId- the object BM Id to remove index for
-
getRoleIndex
Gets the rights index for the given role.- Parameters:
role- the given role, can not benull- Returns:
- the role rights descriptor, may be
null
-
getFullRightsIndex
Iterable<IRightsDescription> getFullRightsIndex()Gets the full rights index for all roles.- Returns:
- the iterable set of rights index items, can not be
null
-
updateIndexForRole
Updates rights index for the given role.- Parameters:
role- the given role, can not benullupdatedRightsIndex- the updated rights index, can not benull
-
updateIndexForObject
void updateIndexForObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EObject role, IRightsDescription updatedRightsIndex) Updates rights index for the given role and object that supports rights.- Parameters:
object- the given object, can not benullrole- the given role, can not benullupdatedRightsIndex- the updated rights index, can not benull
-
getRightsDescriptorForRole
Gets the BM object-related rights descriptor for a role.- Parameters:
bmRoleId- the BM role Id to get rights descriptor for- Returns:
- the rights descriptor, may be
null
-