Class UserGroupService


  • @ApplicationScoped
    public class UserGroupService
    extends java.lang.Object
    It's utility service which applications uses in custom authentication scripts
    Version:
    0.9, 27/07/2012
    Author:
    Yuriy Zabrovarnyy, Yuriy Movchan Date: 04/11/2014
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isInAnyGroup​(java.lang.String[] p_groupDNs, java.lang.String p_userDN)  
      boolean isInAnyGroup​(java.util.List<java.lang.String> p_groupDNs, java.lang.String p_userDN)  
      boolean isUserInGroup​(java.lang.String p_groupDN, java.lang.String p_userDN)  
      boolean isUserInGroupOrMember​(java.lang.String groupDn, java.lang.String personDn)  
      UserGroup loadGroup​(java.lang.String p_groupDN)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserGroupService

        public UserGroupService()
    • Method Detail

      • loadGroup

        public UserGroup loadGroup​(java.lang.String p_groupDN)
      • isUserInGroup

        public boolean isUserInGroup​(java.lang.String p_groupDN,
                                     java.lang.String p_userDN)
      • isUserInGroupOrMember

        public boolean isUserInGroupOrMember​(java.lang.String groupDn,
                                             java.lang.String personDn)
      • isInAnyGroup

        public boolean isInAnyGroup​(java.lang.String[] p_groupDNs,
                                    java.lang.String p_userDN)
      • isInAnyGroup

        public boolean isInAnyGroup​(java.util.List<java.lang.String> p_groupDNs,
                                    java.lang.String p_userDN)