Package com.avoka.fc.core.dao
Class LibraryResourceDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.LibraryResourceDao
Provides a Library Resource Data Access Object class.
- Since:
- 4.0.0
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLibraryResourceForPath
(Library library, String path) Return the library resource for the given library and path or null if not found.Return the Library Resource for the given id.getLibraryResourceList
(Object library) Return the path ordered list of library resources for the given library.resolveLibraryResource
(FormDesignVersion formDesignVersion, String path) Resolve the library resource with the given path.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
-
LibraryResourceDao
public LibraryResourceDao()
-
-
Method Details
-
getLibraryResourceForPK
Return the Library Resource for the given id.- Parameters:
id
- the Library Resource id- Returns:
- the Library Resource for the given id
-
getLibraryResourceList
Return the path ordered list of library resources for the given library.- Parameters:
library
- the library to obtain the resources for- Returns:
- the path ordered list of library resources for the given library
-
getLibraryResourceForPath
Return the library resource for the given library and path or null if not found.- Parameters:
library
- the parent library (required)path
- the resource path (required)- Returns:
- the library resource for the given library and path or null if not found
-
resolveLibraryResource
Resolve the library resource with the given path. The search path associated with the specified form design version is searched and the highest priority match is returned. The search order is the form design version content library, then the form design version includes, and finally project includes.- Parameters:
formDesignVersion
- the form design version to search in (required)path
- the library resource path (required)- Returns:
- the matching library resource, or null if not found
-