|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRepository.RepoArchs
Handling of published archives.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Nested Class Summary | |
(package private) class |
RepoArchs.ArchEntry
Describes an archive entry. |
Field Summary | |
(package private) java.lang.String |
deployerClass
Name of the class responsible for calling the DeployIF web service |
(package private) java.lang.String |
downloadURL
URI of the RepoQuery Web service |
(package private) PublishBean |
pubBean
Model using the archives TreeMap. |
(package private) static RepoArchs |
ra
Archives instance |
(package private) static java.text.SimpleDateFormat |
sdf
Date formatter used to set the date in archive objects |
Constructor Summary | |
private |
RepoArchs()
Private constructor to prevent instantiating RepoArchs from outside. |
Method Summary | |
private java.lang.String |
aadd(java.lang.String owner,
java.lang.String host,
java.lang.String arch,
java.lang.String docUrl,
java.lang.String uploadDir,
boolean runInstall)
Adds a published archive. |
(package private) static java.lang.String |
add(java.lang.String uploadDir,
java.lang.String owner,
java.lang.String host,
java.lang.String arch,
java.lang.String docUrl,
boolean runInstall)
Adds a published archive. |
private java.lang.String |
adelete(java.lang.String owner,
java.lang.String host,
java.lang.String arch,
boolean toForce)
Removes a published archive. |
private boolean |
checkDelta(java.lang.String owner,
java.lang.String host,
java.io.File downf)
Checks if an archive is a jardiff. |
(package private) static java.lang.String |
delete(java.lang.String owner,
java.lang.String host,
java.lang.String arch,
boolean toForce)
Removes a published archive. |
(package private) static void |
deletePending(java.lang.String arch)
Called by SaveSubs.retryDeploy to delete a unpublished archive. |
private java.lang.String |
diff(java.lang.String owner,
java.lang.String host,
java.io.File newf,
java.io.File oldf,
java.io.File tof)
Builds a jardiff except if the new archive is a jardiff. |
(package private) static java.util.TreeMap |
getArchives(java.lang.String owner,
java.lang.String host)
Get map of archives. |
private java.lang.String |
init(java.lang.String owner,
java.lang.String host)
Restores archives.xml. |
(package private) java.lang.String |
save(java.lang.String owner,
java.lang.String host)
Saves archives.xml. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String deployerClass
java.lang.String downloadURL
PublishBean pubBean
static RepoArchs ra
static java.text.SimpleDateFormat sdf
Constructor Detail |
private RepoArchs()
Method Detail |
static java.lang.String add(java.lang.String uploadDir, java.lang.String owner, java.lang.String host, java.lang.String arch, java.lang.String docUrl, boolean runInstall)
uploadDir
- directory where archives are loadedowner
- user who requested the addhost
- user hostarch
- archive to adddocUrl
- documentation URL of the subscriberrunInstall
- run application server installer if true
static java.lang.String delete(java.lang.String owner, java.lang.String host, java.lang.String arch, boolean toForce)
owner
- user who requested the removehost
- user hostarch
- archive to removetoForce
- true if the archive should be removed from the subscriber
even if it cannot be contacted
static java.util.TreeMap getArchives(java.lang.String owner, java.lang.String host)
owner
- user who requested the getArchivehost
- user host
static void deletePending(java.lang.String arch)
arch
- archive to unpublishprivate java.lang.String init(java.lang.String owner, java.lang.String host)
owner
- user who requested the removehost
- user host
private java.lang.String aadd(java.lang.String owner, java.lang.String host, java.lang.String arch, java.lang.String docUrl, java.lang.String uploadDir, boolean runInstall)
owner
- user who requested the addhost
- user hostarch
- archive to adddocUrl
- documentation URL of the subscriberuploadDir
- directory where archives are loadedrunInstall
- run application server installer if true
private boolean checkDelta(java.lang.String owner, java.lang.String host, java.io.File downf)
owner
- user who requested the addhost
- user hostdownf
- archive
private java.lang.String diff(java.lang.String owner, java.lang.String host, java.io.File newf, java.io.File oldf, java.io.File tof)
owner
- user who requested the addhost
- user hostnewf
- new archiveoldf
- old archivetof
- jardiff archive
private java.lang.String adelete(java.lang.String owner, java.lang.String host, java.lang.String arch, boolean toForce)
owner
- user who requested the removehost
- user hostarch
- archive to removetoForce
- true if the archive should be removed from the subscriber
even if it cannot be contacted
java.lang.String save(java.lang.String owner, java.lang.String host)
owner
- user who requested the removehost
- user host
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |