GetAllGlymaSecurityGroups() private method

private GetAllGlymaSecurityGroups ( ) : GetAllSecurityGroupsResponse
return Glyma.Security.GetAllSecurityGroupsResponse
        public GetAllSecurityGroupsResponse GetAllSecurityGroups(string webUrl)
        {
            GetAllSecurityGroupsResponse result = new GetAllSecurityGroupsResponse() { HasError = false };
            SecurityContextManager context = new SecurityContextManager(webUrl);
            if (context.CurrentUser.IsUserSecurityManager())
            {
                result = context.GetAllGlymaSecurityGroups();
            }
            else
            {
                result.HasError = true;
                result.ErrorMessage = "Access Denied. User does not have permissions to access this web service method.";
            }

            return result;
        }
Beispiel #2
0
        public GetAllSecurityGroupsResponse GetAllSecurityGroups(string webUrl)
        {
            GetAllSecurityGroupsResponse result = new GetAllSecurityGroupsResponse()
            {
                HasError = false
            };
            SecurityContextManager context = new SecurityContextManager(webUrl);

            if (context.CurrentUser.IsUserSecurityManager())
            {
                result = context.GetAllGlymaSecurityGroups();
            }
            else
            {
                result.HasError     = true;
                result.ErrorMessage = "Access Denied. User does not have permissions to access this web service method.";
            }

            return(result);
        }