Пример #1
0
 private static ProfilesRNSDLL.BO.ORCID.REFDecision GetPublicationVisibility(long subject)
 {
     System.Data.DataView dv = new ProfilesRNSDLL.BLL.RDF.Triple().GetPublications(subject);
     if (dv.Table.Rows.Count > 0)
     {
         int securityGroup = 1;
         int.TryParse(dv.Table.Rows[0]["ViewSecurityGroup"].ToString(), out securityGroup);
         if (securityGroup != 1)
         {
             ProfilesRNSDLL.BO.RDF.Security.Group group    = new ProfilesRNSDLL.BLL.RDF.Security.Group().Get(securityGroup);
             ProfilesRNSDLL.BO.ORCID.REFDecision  decision = new ProfilesRNSDLL.BLL.ORCID.REFDecision().Get(group.DefaultORCIDDecisionID);
             if (decision.Exists)
             {
                 return(decision);
             }
         }
     }
     // default to private if unable to find the default for the publications security group.
     return(new ProfilesRNSDLL.BLL.ORCID.REFDecision().Get((int)ProfilesRNSDLL.BO.ORCID.REFDecision.REFDecisions.Private));
 }
Пример #2
0
 private static ProfilesRNSDLL.BO.ORCID.REFDecision GetPublicationVisibility(long subject)
 {
     System.Data.DataView dv = new ProfilesRNSDLL.BLL.RDF.Triple().GetPublications(subject);
     if (dv.Table.Rows.Count > 0)
     {
         int securityGroup = 1;
         int.TryParse(dv.Table.Rows[0]["ViewSecurityGroup"].ToString(), out securityGroup);
         if (securityGroup != 1)
         {
             ProfilesRNSDLL.BO.RDF.Security.Group group = new ProfilesRNSDLL.BLL.RDF.Security.Group().Get(securityGroup);
             ProfilesRNSDLL.BO.ORCID.REFDecision decision = new ProfilesRNSDLL.BLL.ORCID.REFDecision().Get(group.DefaultORCIDDecisionID);
             if (decision.Exists)
             {
                 return decision;
             }
         }
     }
     // default to private if unable to find the default for the publications security group.
     return new ProfilesRNSDLL.BLL.ORCID.REFDecision().Get((int)ProfilesRNSDLL.BO.ORCID.REFDecision.REFDecisions.Private);
 }