コード例 #1
0
 public RoleIdentifier GetRoleIdentifier(Scope scope, bool IsAdmin, bool IsShipDirector)
 {
     return(RoleIdentifiers.Where(r => r.IsAdmin == IsAdmin && r.Scope == scope && r.IsShipDirector == IsShipDirector).FirstOrDefault());
 }
コード例 #2
0
 protected void BuildCMSRoleIDs()
 {
     RoleIdentifiers.Add(new RoleIdentifier(Scope.CMS, false));
     RoleIdentifiers.Add(new RoleIdentifier(Scope.CMS, true));
 }
コード例 #3
0
 protected void BuildCMSRegionRoleIDs()
 {
     RoleIdentifiers.Add(new RoleIdentifier(Scope.CMSRegional, false));
 }
コード例 #4
0
 protected void BuildStateRoleIDs()
 {
     RoleIdentifiers.Add(new RoleIdentifier(Scope.State, false));
     RoleIdentifiers.Add(new RoleIdentifier(Scope.State, true));
     RoleIdentifiers.Add(new RoleIdentifier(Scope.State, true, true));
 }
コード例 #5
0
 protected void BuildSubStateRoleIDs()
 {
     RoleIdentifiers.Add(new RoleIdentifier(Scope.SubStateRegion, false));
     RoleIdentifiers.Add(new RoleIdentifier(Scope.SubStateRegion, true));
 }
コード例 #6
0
 protected void BuildAgencyRoleIDs()
 {
     RoleIdentifiers.Add(new RoleIdentifier(Scope.Agency, false));
     RoleIdentifiers.Add(new RoleIdentifier(Scope.Agency, true));
 }