Interface DataService


  • public interface DataService
    Provides services for accessing project data represented in a tree of DataFolder and DataTable entries.
    • Method Detail

      • make

        DataProject make​(java.lang.String... path)
        Make a DataProject and configure it.
        Parameters:
        path - The path that represents the DataProject. If the project is simply for use outside the DataService, the path value can be null. If the path is to be used in a load call, it needs to start with the service identifier and then a path suitable for that service. Path fragments are assumed to be separated by the unix separator (/) regardless of platform. If fragments are provided, the DataService will normalise the path before creating the DataProject.
        Returns:
        The made DataProject
      • load

        DataProject load​(DataProject data)
                  throws DataException
        Find a DataProject based on the DataProject path() properties.
        Parameters:
        data - The DataProject to load.
        Returns:
        A loaded DataProject. The returned object will NOT be the same instance that was provided in the call.
        Throws:
        DataException - if the load fails, or the data is invalid.