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:
Comparable<ArtifactGroup>
,Iterable<Artifact>
A artifact group holds a set of artifacts.
A valid start level is positive, start level 0 means the default OSGi start level.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new itemint
int
Get the start level.Search an artifact with the same groupId, artifactId, type and classifier.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ArtifactGroup
public ArtifactGroup(int startLevel) Create a new artifact group with the level.- Parameters:
startLevel
- The start level.
-
-
Method Details
-
add
Description copied from class:ItemList
Add a new item -
getStartLevel
public int getStartLevel()Get the start level.- Returns:
- The start level.
-
search
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
- Specified by:
compareTo
in interfaceComparable<ArtifactGroup>
-
toString
-