public interface ArchiveRepository
| Modifier and Type | Method and Description |
|---|---|
void |
deleteArchive(ModuleId moduleId)
Delete an archive by ID
|
RepositoryView |
getDefaultView()
Get the default view into this repository.
|
java.lang.String |
getRepositoryId()
Get the ID of this repository
|
java.util.Set<ScriptArchive> |
getScriptArchives(java.util.Set<ModuleId> moduleIds)
Get all of the
ScriptArchives for the given set of moduleIds. |
RepositoryView |
getView(java.lang.String view)
Get a specific named view into this repository.
|
void |
insertArchive(JarScriptArchive jarScriptArchive)
Insert a Jar into the repository
|
void |
insertArchive(JarScriptArchive jarScriptArchive,
java.util.Map<java.lang.String,java.lang.Object> initialDeploySpecs)
Insert a Jar into the repository
|
java.lang.String getRepositoryId()
RepositoryView getDefaultView()
RepositoryView getView(java.lang.String view)
view - the name of the view.RepositoryView that matches the given name or null if
one wasn't found.java.lang.UnsupportedOperationException - if this repository does not support named views.void insertArchive(JarScriptArchive jarScriptArchive) throws java.io.IOException
jarScriptArchive - script archive which describes the jar and
the ModuleSpec which should be insertedjava.io.IOExceptionvoid insertArchive(JarScriptArchive jarScriptArchive, java.util.Map<java.lang.String,java.lang.Object> initialDeploySpecs) throws java.io.IOException
jarScriptArchive - script archive which describes the jar and
the ModuleSpec which should be insertedinitialDeploySpecs - a set of initial deployment specs.java.lang.UnsupportedOperationException - if this repository does not support
adding deploy specs to a module.java.io.IOExceptionjava.util.Set<ScriptArchive> getScriptArchives(java.util.Set<ModuleId> moduleIds) throws java.io.IOException
ScriptArchives for the given set of moduleIds.moduleIds - keys to search forjava.io.IOExceptionvoid deleteArchive(ModuleId moduleId) throws java.io.IOException
moduleId - module id to deletejava.io.IOException