예제 #1
0
 /// <summary>
 /// Creates the access request.
 /// </summary>
 /// <param name="strUserId">The STR user id.</param>
 /// <param name="regionID">The region ID.</param>
 /// <param name="purpose">The purpose.</param>
 public void CreateAccessRequest(string userID, string regionID, string purpose, string teamId, string listName)
 {
     Admin objAdmin = null;
     try
     {
         objAdmin = new Admin();
         objAdmin.CreateAccessRequest(userID, regionID, purpose, teamId, listName);
     }
     catch(Exception)
     {
         throw;
     }
 }
예제 #2
0
 /// <summary>
 /// Determines whether the logged in user is a valid user or not.
 /// </summary>
 /// <param name="parentSiteURL">The parent site URL.</param>
 /// <param name="strUserID">Logged in userID.</param>
 /// <returns>
 /// 	<c>true</c> if the logged in user is a valid AD user admin; otherwise, <c>false</c>.
 /// </returns>
 public bool IsValidUser(String parentSiteURL, String userID)
 {
     bool blnValidUser = false;
     Admin objAdmin = null;
     try
     {
         objAdmin = new Admin();
         //validates the user from AD
         blnValidUser = objAdmin.IsValidUser(parentSiteURL, userID);
     }
     catch(Exception)
     {
         throw;
     }
     return blnValidUser;
 }
예제 #3
0
 /// <summary>
 /// Determines whether the logged in user is a site admin or not.
 /// </summary>
 /// <param name="parentSiteURL">The parent site URL.</param>
 /// <returns>
 /// 	<c>true</c> if the logged in user is a site admin; otherwise, <c>false</c>.
 /// </returns>
 public bool IsAdmin(String parentSiteURL, String userID)
 {
     bool blnAdmin = false;
     Admin objAdmin = null;
     try
     {
         objAdmin = new Admin();
         //Validats whether logged in user is a site admin
         blnAdmin = objAdmin.IsAdmin(parentSiteURL, userID);
     }
     catch(Exception)
     {
         throw;
     }
     return blnAdmin;
 }