Click or drag to resize

RightManager Class

Contains methods to manipulate data rights.
Inheritance Hierarchy
SystemObject
  PsrApi.ManagersBaseManager
    PsrApi.ManagersRightManager

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.2.2.32703 (27.03.2025)+b9af25405a8dc67f2b73227b442cec4f08fd2d8a
Syntax
C#
public class RightManager : BaseManager

The RightManager type exposes the following members.

Methods
  NameDescription
Public methodAddLegitimateDataRight
Adds a new data right that corresponds to the given ID, legitimate ID and rights.
Public methodBatchUpdateRights
Performs all data right updates that are determined by the batch right items.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetCurrentConnectionDataRightList
Returns a list of rights that the current session user has on the objects with the given IDs.
Public methodGetCurrentConnectionDataRights
Returns the rights that the current session user has on the object with the given ID.
Public methodGetDatabaseAdministratorDataRights
Returns the data rights with the given dataId which are database administrator. Does not include the rightkey in the datarights
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLegitimateDataRight
Returns the data right that matches the given ID, legitimate ID and rights.
Public methodGetLegitimateDataRightCheckRoles
Returns the data right to the given object, the roles are taken into account.
Public methodGetLegitimateDataRights
Returns a list of data rights that apply to the given ID.
Public methodGetLegitimateDataRightsWithoutDeleted
Returns all data rights of the given data ID without deleted ones.
Public methodGetLegitimateDataRightsWithTemporalRights
Returns a list of data rights that match the given ID and validity dates.
Public methodGetMultiLegitimateDataRights
Returns a list of rights of the provided data IDs.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemoveAllLegitimateDataRights
Removes all the data rights that match the given ID. WARNING: If allRights is set to true, even the current session user's data right on the object is deleted.
Public methodRemoveAllLegitimateDataRightsExcept
Removes all rights from an object
Public methodRemoveCurrentOrganisationUnitFromRights
Deletes the data right that matches the given ID and the current user.
Public methodRemoveLegitimateDataRight
Removes the data right that matches the given ID, legitimate ID and rights.
Public methodRequestDataRight
Requests permissions on the data with the given ID and type for the current user.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateLegitimateDataRight
Updates the rights of a data right that matches the given ID and legitimate ID.
Public methodUpdateLegitimateDataRightKey
Updates the right key of the data right that matches the given ID and legitimate ID.
Public methodUpdateLegitimateDataRightOwnerRight
Updates the owner right of the data right that matches the given ID and legitimate ID.
Public methodUpdateLegitimateDataRightSecuredData
Updates the secured data state of the data right that matches the given ID and legitimate ID.
Public methodUpdateLegitimateDataRightValidDate
Updates the validity dates of the data right that matches the given ID and legitimate ID.
Public methodUpdateLegitimateSealId
Updates the seal ID of the data right that matches the given ID and legitimate ID.
Top
See Also