2using System.Collections.Generic;
3using System.Globalization;
68 return String.Concat(enumType.Name,
'.',
Enum.GetName(enumType,
right));
static readonly IReadOnlyDictionary< RightsType, Type > TypeMap
Map of RightsTypes to their respective flag Enums.
static TRight AllRights< TRight >()
Get all rights for a given TRight .
static TRight Clamp< TRight >(TRight rights)
Clamps a given set of rights to their valid range.
static bool IsInstanceRight(RightsType rightsType)
Check if a given rightsType is meant for an Models.Instance.
static RightsType TypeToRight< TRight >()
Map a given TRight to its respective RightsType.
static Type RightToType(RightsType rightsType)
Map a given rightsType to its respective Enum Type.
static string RoleName(RightsType rightsType, Enum right)
Gets the role claim name used for a given rightsType and right .
ChatBotRights
Rights for chat bots.
ConfigurationRights
Rights for Models.IConfigurationFiles.
@ List
User may list files if the Models.Instance allows it.
DreamMakerRights
Rights for deployment.
RightsType
The type of rights a model uses.
EngineRights
Rights for engine version management.
RepositoryRights
Rights for the git repository.
InstancePermissionSetRights
Rights for an Models.Instance.
DreamDaemonRights
Rights for managing DreamDaemon.
InstanceManagerRights
Rights for managing Models.Instances.
AdministrationRights
Administration rights for the server.