Class ClientService


public class ClientService extends CayenneService
Provides a client service which handles client creation and deletion.
See Also:
  • Constructor Details

    • ClientService

      public ClientService()
      Package private constructor to enforce ServiceFactory pattern.
  • Method Details

    • createNewClient

      public Client createNewClient(String name, String code)
      Create a new client given the client name and client code. Note that this method contains database transactions.
      Parameters:
      name - a client name
      code - a client code
      Returns:
      the created client
    • generateNormalizedCode

      public String generateNormalizedCode(String clientCode)
      Return the generated normalised client code from a client code
      Parameters:
      clientCode - a client code
      Returns:
      the generated normalised client code
      See Also:
    • updateClientPortals

      public void updateClientPortals(Client client, List<Long> newPortalIds)
      Update the client to be associated with the given set of portals
      Parameters:
      client - the client (required)
      newPortalIds - the list of portal IDs that the client should be associated with (required, may be empty)
      Since:
      19.05.0