Package com.avoka.fc.core.dao
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
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description ApplicationPackageDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ApplicationPackage>
getActiveApplicationPackages(String selectedClientId, UserAccount userAccount)
Return the list of application packages for the currently selected organization and user.ApplicationPackage
getApplicationPackageForName(Client client, String applicationName)
Return the application package with the specified client and nameApplicationPackage
getApplicationPackageForPK(Object applicationPackageId)
Return the application package with the specified IDList<ApplicationPackage>
getApplicationPackagesForClient(Client client, boolean activePackagesOnly)
Return the list of application packages for the given client.-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
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
-
-