Class MandantAPI


  • public class MandantAPI
    extends AEntityAPI<Mandant>
    API class for manipulation of Mandant entities.
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • MandantAPI

        public MandantAPI()
    • Method Detail

      • getByName

        public Mandant getByName​(UserContext uc,
                                 String name)
        Method for determining a Mandant by his name (case insensitive).
        Parameters:
        uc - UserContext the user context in which the action is to be performed.
        name - String the name of the Mandant (case insensitive).
        Returns:
        Mandant which was searched.
        Since:
        2.4.3
      • getAllByName

        public List<Mandant> getAllByName​(UserContext uc,
                                          String name)
        Method for determining all Mandants by name (case insensitive).
        Parameters:
        uc - UserContext the user context in which the action is to be performed.
        name - String the name which is to searched (case insensitive).
        Returns:
        List of Mandant which were found.
        Since:
        2.4.3
      • isCreationAllowed

        public boolean isCreationAllowed​(UserContext uc,
                                         Mandant mandant)
        Method for checking if the creation of a Mandant is allowed.
        Parameters:
        uc - UserContext the user context in which the action is to be performed.
        mandant - Mandant which is to check.
        Returns:
        Boolean if the creation is allowed true, otherwise false.