Class StoragePathAdapter

  • All Implemented Interfaces:
    Adapter, Adapter.Internal

    public class StoragePathAdapter
    extends AdapterImpl
    This will allow us to remember the storage path that allowed us to load a given resource.
    • Constructor Detail

      • StoragePathAdapter

        public StoragePathAdapter​(String storagePath,
                                  boolean isLocal)
        Default constructor.
        Parameters:
        storagePath - The storage path to remember.
        isLocal - Whether this storage was local.
      • StoragePathAdapter

        public StoragePathAdapter​(String storagePath,
                                  boolean isLocal,
                                  String commitId,
                                  String username)
        Constructor.
        Parameters:
        storagePath - The storage path to remember.
        isLocal - Whether this storage was local.
        commitId - The identifier of the commit.
        username - The username of the owner of the commit.
    • Method Detail

      • getCommitId

        public String getCommitId()
        Getter for the commit id.
        Returns:
        the commit it
      • getUsername

        public String getUsername()
        Getter for the commit owner username.
        Returns:
        the username of the owner
      • getStoragePath

        public String getStoragePath()
      • isLocal

        public boolean isLocal()