public AuthorizationRights(IAuthorizationPackage package, XmlElement element)
        {
            _package = package;

            GrantedPageRights = element.GetIntAttributeValue("right1").GetValueOrDefault();
            DeniedPageRights  = element.GetIntAttributeValue("deny1").GetValueOrDefault();

            GrantedStructuralElementRights = element.GetIntAttributeValue("right2").GetValueOrDefault();
            DeniedStructuralElementRights  = element.GetIntAttributeValue("deny2").GetValueOrDefault();

            GrantedElementRights = element.GetIntAttributeValue("right3").GetValueOrDefault();
            DeniedElementRights  = element.GetIntAttributeValue("deny3").GetValueOrDefault();

            GrantedGlobalRights = element.GetIntAttributeValue("right4").GetValueOrDefault();
            DeniedGlobalRights  = element.GetIntAttributeValue("deny4").GetValueOrDefault();

            GrantedAssetManagerAttributeRights = element.GetIntAttributeValue("right5").GetValueOrDefault();
            DeniedAssetManagerAttributeRights  = element.GetIntAttributeValue("deny5").GetValueOrDefault();

            GrantedContentClassRights = element.GetIntAttributeValue("right6").GetValueOrDefault();
            DeniedContentClassRights  = element.GetIntAttributeValue("deny6").GetValueOrDefault();

            GrantedProjectOrLanguageVariantRights = element.GetIntAttributeValue("right7").GetValueOrDefault();
            DeniedProjectOrLanguageVariantRights  = element.GetIntAttributeValue("deny7").GetValueOrDefault();

            GrantedAssetManagerFolderRights = element.GetIntAttributeValue("right8").GetValueOrDefault();
            DeniedAssetManagerFolderRights  = element.GetIntAttributeValue("deny8").GetValueOrDefault();
        }
 public GroupAuthorizationRights(IAuthorizationPackage package, IGroup group) : base(package)
 {
     Group = group;
 }
 public GroupAuthorizationRights(IAuthorizationPackage package, IGroup group, XmlElement element)
     : base(package, element)
 {
     Group = @group;
 }
 public UserAuthorizationRights(IAuthorizationPackage package, IUser user) : base(package)
 {
     User = user;
 }
 public UserAuthorizationRights(IAuthorizationPackage package, IUser user, XmlElement element)
     : base(package, element)
 {
     User = user;
 }
 protected AuthorizationRights(IAuthorizationPackage package)
 {
     _package = package;
 }
 public UserAuthorizations(IAuthorizationPackage package, Caching caching)
     : base(authorization => authorization.User.Name, caching)
 {
     _package     = package;
     RetrieveFunc = GetAuthorizations;
 }