public abstract class BaseRepoCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ContentSource |
repo |
Constructor and Description |
---|
BaseRepoCommand() |
Modifier and Type | Method and Description |
---|---|
void |
addSslSet(java.lang.Long sslCaCertId,
java.lang.Long sslClientCertId,
java.lang.Long sslClientKeyId)
Marks some SSL set for assigning to repository
|
void |
deleteAllSslSets()
Marks all assigned SSL sets for deletion
|
java.lang.String |
getLabel() |
Org |
getOrg() |
ContentSource |
getRepo()
Get the repo
|
java.lang.String |
getType() |
java.lang.String |
getUrl() |
void |
setLabel(java.lang.String labelIn) |
void |
setOrg(Org orgIn) |
void |
setType(java.lang.String typeIn) |
void |
setUrl(java.lang.String urlIn) |
void |
store()
Check for errors and store Org to db.
|
protected ContentSource repo
public Org getOrg()
public void setOrg(Org orgIn)
orgIn
- to set for repopublic java.lang.String getLabel()
public void setLabel(java.lang.String labelIn)
labelIn
- to set for repopublic java.lang.String getUrl()
public void setUrl(java.lang.String urlIn)
urlIn
- to set for repopublic java.lang.String getType()
public void setType(java.lang.String typeIn)
typeIn
- to set type of repopublic void addSslSet(java.lang.Long sslCaCertId, java.lang.Long sslClientCertId, java.lang.Long sslClientKeyId) throws InvalidCertificateException
sslCaCertId
- ca cert idsslClientCertId
- client cert idsslClientKeyId
- client keyInvalidCertificateException
- in case ca cert is missing or client key is set,
but client certificate is missingpublic void deleteAllSslSets()
public void store() throws InvalidRepoUrlException, InvalidRepoLabelException, InvalidRepoTypeException
InvalidRepoUrlException
- in case repo wih given url already exists
in the orgInvalidRepoLabelException
- in case repo witch given label already exists
in the orgInvalidRepoTypeException
- in case repo wih given type already exists
in the orgpublic ContentSource getRepo()