Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
XML, with the following sample syntax
[This is preliminary documentation and is subject to change.]
Returns the effective global rights for a trustee.
Namespace: ContentStudio.Security
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetRights( ConnectionId connectionId, SessionId sessionId, int trusteeId, AccountType trusteeType, out GlobalRights rightsMask )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - trusteeId
- Type: SystemInt32
An identifier to the trustee to get effective rights for. Set the TrusteeID parameter to zero if the for the user trustee type in order to display the caller's rights. - trusteeType
- Type: ContentStudio.SecurityAccountType
Type of trustee indicated by the TrusteeID parameter. The AccountType.Unknown type is not supported. - rightsMask
- Type: ContentStudio.SecurityGlobalRights
Returns the found the effective global right for the trustee
Return Value
Type: StringXML, with the following sample syntax
<rights>Int32 - value: RightsMask</rights>
Exceptions
Exception | Condition |
---|---|
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
See Also