Class LibraryResourceDao


  • public class LibraryResourceDao
    extends AbstractDao
    Provides a Library Resource Data Access Object class.
    Since:
    4.0.0
    • Constructor Detail

      • LibraryResourceDao

        public LibraryResourceDao()
    • 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