Class StoreResource

  • All Implemented Interfaces:
    org.commonjava.maven.galley.model.Resource

    public class StoreResource
    extends org.commonjava.maven.galley.model.ConcreteResource
    Implementation of ConcreteResource which assumes locations are KeyedLocation instances, and provides access to the StoreKeys they hold. Also provides a method for converting a list of these resources into a listing DTO.
    • Method Detail

      • getStoreKey

        public org.commonjava.indy.model.core.StoreKey getStoreKey()
        Retrieve the StoreKey from the KeyedLocation referenced by this resource.
      • convertToEntries

        public static List<org.commonjava.indy.model.core.dto.DirectoryListingEntryDTO> convertToEntries​(List<StoreResource> items)
        Convert a series of StoreResources into a DTO for use in generating browser or other directory listings.