|
||||||||||
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()
Hashable
toString
in interface Hashable
toString
in class java.lang.Object
public java.lang.Object getKey()
getKey
in interface Rec
public void setKey(java.lang.Object new_key)
setKey
in interface Rec
public int getSiteId()
Site
getSiteId
in interface Site
public void setSiteId(int site_id)
Site
setSiteId
in interface Site
public java.lang.String getName()
Site
getName
in interface Site
public void setName(java.lang.String name)
Site
setName
in interface Site
public java.net.URL getRpcURL()
Site
getRpcURL
in interface Site
public void setRpcURL(java.net.URL rpc_url)
Site
setRpcURL
in interface Site
public java.net.URL getContentURL()
Site
getContentURL
in interface Site
public void setContentURL(java.net.URL content_url)
Site
setContentURL
in interface Site
public java.lang.String getRpcUrlStr()
Site
getRpcUrlStr
in interface Site
public void setRpcUrlStr(java.lang.String s_url) throws java.net.MalformedURLException
Site
setRpcUrlStr
in interface Site
public java.lang.String getContentUrlStr()
Site
getContentUrlStr
in interface Site
public void setContentUrlStr(java.lang.String s_url) throws java.net.MalformedURLException
Site
setContentUrlStr
in interface Site
public boolean getIsLocal()
Site
getIsLocal
in interface Site
public boolean getIsRemote()
Site
getIsRemote
in interface Site
public java.util.Hashtable toHash()
Use SiteRec(Hashtable)
to transform the data
back into an object of this type.
toHash
in interface Hashable
public boolean getChecked()
Selectable
getChecked
in interface Selectable
jreceiver.common.rec.Selectable
boolean
true if the item has been selected by the user; false otherwisepublic void setChecked(boolean is_checked)
Selectable
setChecked
in interface Selectable
jreceiver.common.rec.Selectable
is_checked
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |