|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.site.SiteRec
Bean to describe a record for the Site table
| Field Summary | |
protected java.net.URL |
content_url
|
protected boolean |
is_checked
|
protected java.lang.String |
name
|
protected java.net.URL |
rpc_url
|
protected int |
site_id
|
| Fields inherited from interface jreceiver.common.rec.site.Site |
DEFAULT_HOME_CONTENT_URL, HKEY_SITE_CONTENT_URL, HKEY_SITE_NAME, HKEY_SITE_RPC_URL, SITE_HOME |
| Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
| Fields inherited from interface jreceiver.common.rec.Selectable |
HKEY_CHECKED |
| Constructor Summary | |
SiteRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via RPC |
|
SiteRec(int site_id,
java.lang.String name,
java.net.URL rpc_url,
java.net.URL content_url)
ctor |
|
| Method Summary | |
boolean |
getChecked()
get the current select state |
java.net.URL |
getContentURL()
obtain the url for the content engine for the site |
java.lang.String |
getContentUrlStr()
obtain the url (as a String) for the content engine for the site |
boolean |
getIsLocal()
Return true if the site refers to a local file, as indexed in the mfile table. |
boolean |
getIsRemote()
return true if the site is offsite, not indexed in the mfile table. |
java.lang.Object |
getKey()
return the Integer or Key object that serves as this Rec's key. |
java.lang.String |
getName()
obtain the site name (i.e., a local name for someone else's site) |
java.net.URL |
getRpcURL()
obtain the url for the RPC engine for the site |
java.lang.String |
getRpcUrlStr()
obtain the url (as a String) for the RPC engine for the site |
int |
getSiteId()
obtain the site id |
void |
setChecked(boolean is_checked)
set the select state |
void |
setContentURL(java.net.URL content_url)
assign the url for the content engine for the site |
void |
setContentUrlStr(java.lang.String s_url)
assign the url (as a String) for the content engine for the site |
void |
setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key. |
void |
setName(java.lang.String name)
assign the site name (i.e., a local name for someone else's site) |
void |
setRpcURL(java.net.URL rpc_url)
assign the url for the RPC engine for the site |
void |
setRpcUrlStr(java.lang.String s_url)
assign the url (as a String) for the RPC engine for the site |
void |
setSiteId(int site_id)
assign the site id |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class jreceiver.common.rec.BaseRec |
dissolve, dissolveMap, find, find, find, find |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int site_id
protected java.lang.String name
protected java.net.URL rpc_url
protected java.net.URL content_url
protected boolean is_checked
| Constructor Detail |
public SiteRec(int site_id,
java.lang.String name,
java.net.URL rpc_url,
java.net.URL content_url)
public SiteRec(java.util.Hashtable hash)
throws RecException
hash - | Method Detail |
public java.lang.String toString()
HashabletoString in interface HashabletoString in class java.lang.Objectpublic java.lang.Object getKey()
getKey in interface Recpublic void setKey(java.lang.Object new_key)
setKey in interface Recpublic int getSiteId()
SitegetSiteId in interface Sitepublic void setSiteId(int site_id)
SitesetSiteId in interface Sitepublic java.lang.String getName()
SitegetName in interface Sitepublic void setName(java.lang.String name)
SitesetName in interface Sitepublic java.net.URL getRpcURL()
SitegetRpcURL in interface Sitepublic void setRpcURL(java.net.URL rpc_url)
SitesetRpcURL in interface Sitepublic java.net.URL getContentURL()
SitegetContentURL in interface Sitepublic void setContentURL(java.net.URL content_url)
SitesetContentURL in interface Sitepublic java.lang.String getRpcUrlStr()
SitegetRpcUrlStr in interface Site
public void setRpcUrlStr(java.lang.String s_url)
throws java.net.MalformedURLException
SitesetRpcUrlStr in interface Sitepublic java.lang.String getContentUrlStr()
SitegetContentUrlStr in interface Site
public void setContentUrlStr(java.lang.String s_url)
throws java.net.MalformedURLException
SitesetContentUrlStr in interface Sitepublic boolean getIsLocal()
SitegetIsLocal in interface Sitepublic boolean getIsRemote()
SitegetIsRemote in interface Sitepublic java.util.Hashtable toHash()
Use SiteRec(Hashtable) to transform the data
back into an object of this type.
toHash in interface Hashablepublic boolean getChecked()
SelectablegetChecked in interface Selectablejreceiver.common.rec.Selectableboolean true if the item has been selected by the user; false otherwisepublic void setChecked(boolean is_checked)
SelectablesetChecked in interface Selectablejreceiver.common.rec.Selectableis_checked -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||