Package org.commonjava.indy.content
Class StoreResource
- java.lang.Object
-
- org.commonjava.maven.galley.model.ConcreteResource
-
- org.commonjava.indy.content.StoreResource
-
- All Implemented Interfaces:
org.commonjava.maven.galley.model.Resource
public class StoreResource extends org.commonjava.maven.galley.model.ConcreteResourceImplementation ofConcreteResourcewhich assumes locations areKeyedLocationinstances, and provides access to theStoreKeys they hold. Also provides a method for converting a list of these resources into a listing DTO.
-
-
Constructor Summary
Constructors Constructor Description StoreResource(KeyedLocation location, String... path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<org.commonjava.indy.model.core.dto.DirectoryListingEntryDTO>convertToEntries(List<StoreResource> items)Convert a series ofStoreResources into a DTO for use in generating browser or other directory listings.org.commonjava.indy.model.core.StoreKeygetStoreKey()Retrieve theStoreKeyfrom theKeyedLocationreferenced by this resource.
-
-
-
Constructor Detail
-
StoreResource
public StoreResource(KeyedLocation location, String... path)
-
-
Method Detail
-
getStoreKey
public org.commonjava.indy.model.core.StoreKey getStoreKey()
Retrieve theStoreKeyfrom theKeyedLocationreferenced by this resource.
-
convertToEntries
public static List<org.commonjava.indy.model.core.dto.DirectoryListingEntryDTO> convertToEntries(List<StoreResource> items)
Convert a series ofStoreResources into a DTO for use in generating browser or other directory listings.
-
-