예제 #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));
 }