Class AbstractPrincipalDO<T extends Principal>

All Implemented Interfaces:
IBaseDO<T>
Direct Known Subclasses:
PrincipalDO, UserDO, UserGroupDO

public abstract class AbstractPrincipalDO<T extends Principal> extends AbstractComplexEntityDO<T>
  • Constructor Details

    • AbstractPrincipalDO

      public AbstractPrincipalDO()
  • Method Details

    • getAllActive

      public List<T> getAllActive()
      Description copied from interface: IBaseDO
      get all active entities. method is not implemented for all entity classes:
      • Principal: get all with active flag true and isSystem flag false
      • SimpleEntity: get all with isActive flag true and isSystem flag false
      • TypeEntity: get all with isActive flag true
      • all other: throws UnsupportedOperationException cause result may be too large
      Specified by:
      getAllActive in interface IBaseDO<T extends Principal>
      Overrides:
      getAllActive in class AbstractBaseDO<T extends Principal>
      Returns:
      list of entities matching the above rules
    • getAllActive

      public List<T> getAllActive(mc.core.system.search.SearchFilter sf)
      get all principals (User and UserGroup) according to given SearchFilter and active, not deleted and with isSystem-Flag false.
    • delete

      public void delete(T principal, boolean force) throws ApplicationException
      Description copied from class: AbstractBaseDO
      NOTE: when overriding this method and you delete any other objects you need to call validateNotUsed before in case flag force is false!
      Overrides:
      delete in class AbstractComplexEntityDO<T extends Principal>
      Parameters:
      principal - mandatory
      force - if true delete without usage check, which can result in db constraints error unless references are taken care of
      Throws:
      ApplicationException