|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.repository.AbstractStructuredRepository
public abstract class AbstractStructuredRepository
This is a base class for structured repository, ie: repository having
a root (path, URL or whatever ...) and storing artifacts using an internal
tree-styled structure.
This abstract implementation proposes to express structure using Ant-styled
properties that will be replaced at runtime by artifact properties. Such
properties are : ${release}, ${uniqueId}, ${versionInfo}
and ${categoryInfo}. The default structure is: ${categoryInfo}/${release}.
Field Summary | |
---|---|
static java.lang.String |
CATEGORY_PROPERTY
Structure property relating to the Artifact category info. |
static java.lang.String |
DEFAULT_STRUCTURE
Repository default structure definition. |
static java.lang.String |
ID_PROPERTY
Structure property relating to the Artifact unique id. |
static java.lang.String |
RELEASE_PROPERTY
Structure property relating to the Artifact Release name. |
static java.lang.String |
VERSION_PROPERTY
Structure property relating to the Artifact version info. |
Constructor Summary | |
---|---|
AbstractStructuredRepository()
|
Method Summary | |
---|---|
java.lang.String |
getStructureDefinition()
|
protected java.lang.String |
getStructurePath(Artifact artifact)
Return the relative path of Artifact within repository structure according to the structure definition. |
void |
setStructureDefinition(java.lang.String definition)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.figure8.join.services.repository.Repository |
---|
getArtifact, storeArtifact, storeArtifact |
Field Detail |
---|
public static final java.lang.String DEFAULT_STRUCTURE
public static final java.lang.String ID_PROPERTY
public static final java.lang.String RELEASE_PROPERTY
public static final java.lang.String CATEGORY_PROPERTY
public static final java.lang.String VERSION_PROPERTY
Constructor Detail |
---|
public AbstractStructuredRepository()
Method Detail |
---|
public void setStructureDefinition(java.lang.String definition)
definition
- Repository internal structure definitionpublic java.lang.String getStructureDefinition()
protected java.lang.String getStructurePath(Artifact artifact)
artifact
- The artifact for whom getting relative path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |