Class InumService

  • All Implemented Interfaces:
    java.io.Serializable

    @ApplicationScoped
    public class InumService
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InumService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addInum​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum, java.lang.String type)
      Add an Inum to the DB
      boolean addInumByObject​(javax.persistence.EntityManager inumEntryManager, InumSqlEntry inumEntry)
      Add an Inum to the DB by object
      boolean contains​(java.lang.String inum, java.lang.String type)  
      boolean containsAttribute​(java.lang.String inum)  
      boolean containsConfiguration​(java.lang.String inum)  
      boolean containsGroup​(java.lang.String inum)  
      boolean containsInum​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum)
      Check if inum DB contains an inum
      boolean containsOrganization​(java.lang.String inum)  
      boolean containsPerson​(java.lang.String inum)  
      boolean containsTrustRelationship​(java.lang.String inum)  
      InumSqlEntry findInum​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum)
      get an inum from inum DB by inum value
      InumSqlEntry findInum​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum, java.lang.String type)
      get an inum from inum DB by inum value and type
      InumSqlEntry findInumByObject​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum)
      get an inum from inum DB by inum value
      java.util.List<InumSqlEntry> findInums​(javax.persistence.EntityManager inumEntryManager, java.lang.String type)
      get a list of inums from inum DB associated to a specific type
      java.lang.String generateInums​(java.lang.String type)  
      java.lang.String generateInums​(java.lang.String type, boolean checkInDb)  
      java.lang.String getDnForInum​(java.lang.String baseDn, java.lang.String inum)  
      boolean removeInum​(javax.persistence.EntityManager inumEntryManager, java.lang.String inum)
      removes an inum from inum DB
      • Methods inherited from class java.lang.Object

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

      • InumService

        public InumService()
    • Method Detail

      • contains

        public boolean contains​(java.lang.String inum,
                                java.lang.String type)
      • containsAttribute

        public boolean containsAttribute​(java.lang.String inum)
      • containsPerson

        public boolean containsPerson​(java.lang.String inum)
      • containsGroup

        public boolean containsGroup​(java.lang.String inum)
      • containsConfiguration

        public boolean containsConfiguration​(java.lang.String inum)
      • containsTrustRelationship

        public boolean containsTrustRelationship​(java.lang.String inum)
      • containsOrganization

        public boolean containsOrganization​(java.lang.String inum)
      • getDnForInum

        public java.lang.String getDnForInum​(java.lang.String baseDn,
                                             java.lang.String inum)
      • generateInums

        public java.lang.String generateInums​(java.lang.String type)
      • generateInums

        public java.lang.String generateInums​(java.lang.String type,
                                              boolean checkInDb)
      • addInumByObject

        public boolean addInumByObject​(javax.persistence.EntityManager inumEntryManager,
                                       InumSqlEntry inumEntry)
        Add an Inum to the DB by object
        Returns:
        True if user exist
      • containsInum

        public boolean containsInum​(javax.persistence.EntityManager inumEntryManager,
                                    java.lang.String inum)
        Check if inum DB contains an inum
        Returns:
        True if user exist
      • findInum

        public InumSqlEntry findInum​(javax.persistence.EntityManager inumEntryManager,
                                     java.lang.String inum)
        get an inum from inum DB by inum value
        Returns:
        InumSqlEntry
      • findInum

        public InumSqlEntry findInum​(javax.persistence.EntityManager inumEntryManager,
                                     java.lang.String inum,
                                     java.lang.String type)
        get an inum from inum DB by inum value and type
        Returns:
        InumSqlEntry
      • findInums

        public java.util.List<InumSqlEntry> findInums​(javax.persistence.EntityManager inumEntryManager,
                                                      java.lang.String type)
        get a list of inums from inum DB associated to a specific type
        Returns:
        List of InumSqlEntry
      • removeInum

        public boolean removeInum​(javax.persistence.EntityManager inumEntryManager,
                                  java.lang.String inum)
        removes an inum from inum DB
        Returns:
        List of InumSqlEntry
      • findInumByObject

        public InumSqlEntry findInumByObject​(javax.persistence.EntityManager inumEntryManager,
                                             java.lang.String inum)
        get an inum from inum DB by inum value
        Returns:
        InumSqlEntry
      • addInum

        public boolean addInum​(javax.persistence.EntityManager inumEntryManager,
                               java.lang.String inum,
                               java.lang.String type)
        Add an Inum to the DB
        Returns:
        True if user exist