Package com.priint.pubserver.config
Class ConfigIndex
java.lang.Object
com.priint.pubserver.config.ConfigIndex
- All Implemented Interfaces:
Serializable
Index of configuration documents containing a set of
#ConfigIndexEntry.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIndex entry for one configuration document -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateEntry(String label, String path) Add or update entry.getItems()Gets items.getLabel()Gets label.Gets repository filename.Gets repository path.voidremoveEntry(String path) Remove entry.voidsetItems(Set<ConfigIndex.ConfigIndexEntry> items) Sets items.voidSets label.toString()
-
Constructor Details
-
ConfigIndex
public ConfigIndex()Instantiates a new Config index.
-
-
Method Details
-
getItems
Gets items.- Returns:
- the items
-
setItems
Sets items.- Parameters:
items- the items
-
getLabel
Gets label.- Returns:
- the label
-
setLabel
Sets label.- Parameters:
label- the label
-
addOrUpdateEntry
Add or update entry.- Parameters:
label- the labelpath- the path
-
removeEntry
Remove entry.- Parameters:
path- the path
-
getRepositoryPath
Gets repository path.- Returns:
- the repository path
-
getRepositoryFilename
Gets repository filename.- Returns:
- the repository filename
-
toString
-