|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.site.SiteInfoMaster
Nested Class Summary | |
class |
SiteInfoMaster.GUISite
|
Field Summary | |
private Enumeration |
_hashEnumeration
|
private static Site |
_localSite
|
private Hashtable |
_sitesHash
|
Constructor Summary | |
SiteInfoMaster()
|
Method Summary | |
void |
addSite(String name,
String url,
WTUser user,
String description,
boolean isMaster,
boolean isReplica,
boolean isProdReplPeer)
Add a site to the database |
private void |
addSiteToDB(Site theSite,
boolean genKeys)
|
void |
deleteSite(String siteName)
Delete a site from the database |
byte[] |
exportKey(String siteName)
|
void |
generateKeyPair(String siteName)
Generate a pair of access keys for the site |
Enumeration |
getAllSites()
|
private static Site |
getLocalSite()
|
private Site |
getSite(Long objID)
|
private Site |
getSite(String siteName)
|
SiteInfoMaster.GUISite |
getSiteByName(String siteName)
|
String |
getSiteDesc(String siteName)
Return the description for the site given the name |
long |
getSiteObjectID(String siteName)
Return the internal object ID for the site |
void |
importKey(String siteName,
byte[] keyArray)
|
private void |
initSites()
|
boolean |
isSiteLocal(Site theSite)
|
boolean |
isSiteLocal(String siteName)
Is the site local to this server? |
boolean |
isSiteReplicaOnly(String siteName)
|
void |
printAllSites()
Utility function to print a list of all existing sites to standard output. |
void |
reset()
|
void |
updateSite(long siteID,
String name,
String url,
WTUser user,
String description,
boolean isMaster,
boolean isReplica,
boolean isProdReplPeer)
Add an existing site in the database |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Hashtable _sitesHash
private Enumeration _hashEnumeration
private static Site _localSite
Constructor Detail |
public SiteInfoMaster() throws WTException
Method Detail |
public Enumeration getAllSites()
public SiteInfoMaster.GUISite getSiteByName(String siteName)
public String getSiteDesc(String siteName)
public long getSiteObjectID(String siteName)
public void generateKeyPair(String siteName) throws WTException
WTException
public void addSite(String name, String url, WTUser user, String description, boolean isMaster, boolean isReplica, boolean isProdReplPeer) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void updateSite(long siteID, String name, String url, WTUser user, String description, boolean isMaster, boolean isReplica, boolean isProdReplPeer) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void deleteSite(String siteName) throws WTException
WTException
private void addSiteToDB(Site theSite, boolean genKeys) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void importKey(String siteName, byte[] keyArray) throws WTException
WTException
public byte[] exportKey(String siteName) throws WTException
WTException
public void printAllSites()
private void initSites() throws WTException
WTException
public void reset() throws WTException
WTException
public boolean isSiteLocal(String siteName)
public boolean isSiteLocal(Site theSite)
public boolean isSiteReplicaOnly(String siteName)
private static Site getLocalSite() throws WTException
WTException
private Site getSite(String siteName)
private Site getSite(Long objID)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |