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
-
public class LibraryResourceDao extends AbstractDao
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
Constructors Constructor Description LibraryResourceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LibraryResource
getLibraryResourceForPath(Library library, String path)
Return the library resource for the given library and path or null if not found.LibraryResource
getLibraryResourceForPK(Object id)
Return the Library Resource for the given id.List<LibraryResource>
getLibraryResourceList(Object library)
Return the path ordered list of library resources for the given library.LibraryResource
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
-
-
-
-
Method Detail
-
getLibraryResourceForPK
public LibraryResource getLibraryResourceForPK(Object id)
Return the Library Resource for the given id.- Parameters:
id
- the Library Resource id- Returns:
- the Library Resource for the given id
-
getLibraryResourceList
public List<LibraryResource> getLibraryResourceList(Object library)
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
public LibraryResource getLibraryResourceForPath(Library library, String path)
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
public LibraryResource resolveLibraryResource(FormDesignVersion formDesignVersion, String path)
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
-
-