Beispiel #1
0
        public void Add(SPPrincipalInstance principal)
        {
            if (principal == null)
            {
                return;
            }

            m_roleAssignmentCollection.Add(principal.SPPrincipal);
        }
Beispiel #2
0
        public void RemovePrincipal(SPPrincipalInstance principal)
        {
            if (principal == null)
            {
                return;
            }

            m_roleAssignmentCollection.Remove(principal.SPPrincipal);
        }
Beispiel #3
0
        public void RemoveFromCurrentScopeOnly(SPPrincipalInstance principal)
        {
            if (principal == null)
            {
                return;
            }

            m_roleAssignmentCollection.RemoveFromCurrentScopeOnly(principal.SPPrincipal);
        }
Beispiel #4
0
        public SPRoleAssignmentInstance GetAssignmentByPrincipal(SPPrincipalInstance principal)
        {
            if (principal == null)
            {
                return(null);
            }

            var result = m_roleAssignmentCollection.GetAssignmentByPrincipal(principal.SPPrincipal);

            return(new SPRoleAssignmentInstance(Engine.Object.InstancePrototype, result));
        }