Class EntityManager

  • All Implemented Interfaces:
    IUMSConstants

    public class EntityManager
    extends Object
    implements IUMSConstants
    This class has the responsibility of creating structural entities. A structural entity is an entry which contains other entries (example: people container). The information in the DIT (under "StructureTemplates") defines the structure . For example, when an Organization is created, it will contain a "Groups" container. This class creates the structure of entities as defined in the DIT.
    • Method Detail

      • getEntityManager

        public static EntityManager getEntityManager()
                                              throws UMSException
        Get the instance of Entity Manager.
        Returns:
        Instance of Entity manager.
        Throws:
        UMSException - If an exception occurs.
      • execute

        public void execute​(Principal principal,
                            PersistentObject pObject,
                            Guid pGUID)
                     throws UMSException
        This method will use methods provided by ConfigManager to get "Structure Template" information from the DIT. It will use this information to create the "Structural Entity".
        Parameters:
        principal - The Principal.
        pObject - The persistent object for which the entities apply.
        pGUID - The guid of the parent object.
        Throws:
        UMSException - if an exception occurs.