Package com.avoka.fc.core.dao
Class DeliveryDetailsDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.DeliveryDetailsDao
Provides a DAO for the DeliveryDetails entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a concatenation of all delivery methods, separated by commasString[]
Return the list of delivery methods.getClientWSDeliveryDetailsList
(Client client) Return the web service delivery details defined for a clientReturn the default delivery channel for a client, or null if none is marked as default.getDeliveryDetailForClientAndName
(Client client, String name) Return a specific delivery details entryReturn the delivery details for the given primary key.getDeliveryDetailsList
(String clientId) Return a list of available delivery details ordered by name.getDeliveryDetailsListForClient
(String clientId) Return the list of delivery details for a client, sorted by nameorg.apache.cayenne.query.SelectQuery
Return a query that can be used to retrieve the list of delivery details that can be used for a specific formboolean
Return true if there are delivery details available for the given name.Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
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
-
Constructor Details
-
DeliveryDetailsDao
public DeliveryDetailsDao()
-
-
Method Details
-
getDeliveryDetailsForPK
Return the delivery details for the given primary key.- Parameters:
id
- the delivery details- Returns:
- the delivery details for the given primary key
-
hasDeliveryDetailsForName
Return true if there are delivery details available for the given name.- Parameters:
name
- the name of the the delivery details- Returns:
- true if there are delivery details available for the given name
- Since:
- 4.0.0
-
getDeliveryDetailsList
Return a list of available delivery details ordered by name.- Parameters:
clientId
- the client to which the delivery details belong (optional)- Returns:
- a list of available delivery details ordered by name
-
getDeliveryDetailForClientAndName
Return a specific delivery details entry- Parameters:
client
- the non-null client to which the delivery details belongname
- the non-empty name of the delivery details- Returns:
- the delivery details object with the specified name that belongs to the specified client, or null if no such delivery details exist
-
getDefaultDeliveryChannelForClient
Return the default delivery channel for a client, or null if none is marked as default.- Parameters:
client
- the non-null client to which the delivery details belong- Returns:
- the default delivery details object that belongs to the specified client, or null if no such delivery channel exists. Generally there should be only one entry in the list.
- Since:
- 5.1.0
-
getClientWSDeliveryDetailsList
Return the web service delivery details defined for a client- Parameters:
client
- the client- Returns:
- the list of delivery details for the client that have
DeliveryDetails.METHOD_WEB_SERVICE
as their delivery method
-
getDeliveryDetailsListForClient
Return the list of delivery details for a client, sorted by name- Parameters:
clientId
- the client OID- Returns:
- the list of all delivery details defined for the client
-
getPotentialDeliveryDetailsQueryForForm
Return a query that can be used to retrieve the list of delivery details that can be used for a specific form- Parameters:
formId
- the form OID- Returns:
- the form-specific
SelectQuery
-
getAvailableDeliveryMethods
Return the list of delivery methods. By default, this includes all methods defined inDeliveryDetails.DELIVERY_METHODS
. However, this can be overwritten by changing the value ofDeploymentProperty.PROPERTY_Supported_Delivery_Methods
.- Returns:
- the list of supported delivery methods
-
getAllDeliveryMethodsString
Returns a concatenation of all delivery methods, separated by commas- Returns:
- a string containing all delivery methods defined in
DeliveryDetails.DELIVERY_METHODS
-