Class ArtifactGroup
- java.lang.Object
-
- org.apache.sling.provisioning.model.Traceable
-
- org.apache.sling.provisioning.model.Commentable
-
- org.apache.sling.provisioning.model.ItemList<Artifact>
-
- org.apache.sling.provisioning.model.ArtifactGroup
-
- All Implemented Interfaces:
java.lang.Comparable<ArtifactGroup>
,java.lang.Iterable<Artifact>
public class ArtifactGroup extends ItemList<Artifact> implements java.lang.Comparable<ArtifactGroup>
A artifact group holds a set of artifacts. A valid start level is positive, start level 0 means the default OSGi start level.
-
-
Constructor Summary
Constructors Constructor Description ArtifactGroup(int startLevel)
Create a new artifact group with the level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Artifact item)
Add a new itemint
compareTo(ArtifactGroup o)
int
getStartLevel()
Get the start level.Artifact
search(Artifact template)
Search an artifact with the same groupId, artifactId, type and classifier.java.lang.String
toString()
-
Methods inherited from class org.apache.sling.provisioning.model.Commentable
getComment, setComment
-
Methods inherited from class org.apache.sling.provisioning.model.Traceable
getLocation, setLocation
-
-
-
-
Method Detail
-
getStartLevel
public int getStartLevel()
Get the start level.- Returns:
- The start level.
-
search
public Artifact search(Artifact template)
Search an artifact with the same groupId, artifactId, type and classifier. Version is not considered.- Parameters:
template
- A template artifact- Returns:
- The artifact or
null
.
-
compareTo
public int compareTo(ArtifactGroup o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ArtifactGroup>
-
-