Class ApplicationPackageDao

java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.ApplicationPackageDao

public class ApplicationPackageDao extends BaseDao
Provides a DAO for the ApplicationPackage entity.
Since:
4.0.0
  • Constructor Details

    • ApplicationPackageDao

      public ApplicationPackageDao()
  • Method Details

    • getApplicationPackageForPK

      public ApplicationPackage getApplicationPackageForPK(Object applicationPackageId)
      Return the application package with the specified ID
      Parameters:
      applicationPackageId - the OID of the application package (required)
      Returns:
      the matching application package, or null if not found
    • getApplicationPackageForName

      public ApplicationPackage getApplicationPackageForName(Client client, String applicationName)
      Return the application package with the specified client and name
      Parameters:
      client - the client (required)
      applicationName - the name of the application package (optional)
      Returns:
      the matching application package, or null if not found
    • getApplicationPackagesForClient

      public List<ApplicationPackage> getApplicationPackagesForClient(Client client, boolean activePackagesOnly)
      Return the list of application packages for the given client.
      Parameters:
      client - the client (required)
      activePackagesOnly - whether to include only those application packages with the active flag set
      Returns:
      the list of application packages for the client
    • getActiveApplicationPackages

      public List<ApplicationPackage> getActiveApplicationPackages(String selectedClientId, UserAccount userAccount)
      Return the list of application packages for the currently selected organization and user. If an organization is selected and the user can access the organization, only application packages belonging to that organization are returned. Otherwise, all application packages associated with clients accessible to the user are returned.
      Parameters:
      selectedClientId - the ID of the currently selected client (optional)
      userAccount - the user (required)
      Returns:
      the list of active application packages for the applicable client(s), sorted by name