|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.torus2.model.ParentRealm
public class ParentRealm
Represents parent realm entity.
Constructor Summary | |
---|---|
ParentRealm(String id,
String name,
String url)
|
|
ParentRealm(String id,
String name,
URL url)
|
Method Summary | |
---|---|
static ParentRealm |
fromDOM(Document doc,
String id)
This method can be safely called on user input as it ignores system controlled fields that end-up serialized in the output document. |
static ParentRealm |
fromStoredDOM(Document doc,
String id)
This method calls ParentRealm#fromDOM and also parses the stored fields that otherwise are ignored from the user request. |
String |
getId()
|
Date |
getLastRefreshed()
|
String |
getName()
|
int |
getPriority()
|
int |
getRefreshAfter()
|
URL |
getUrl()
|
boolean |
needsRefresh()
|
URL |
resolveUrl(String host)
|
void |
setId(String id)
|
void |
setLastRefreshed(Date lastRefreshed)
|
void |
setPriority(int priority)
|
void |
setRefreshAfter(int refreshAfter)
|
void |
setUrl(URL url)
|
Element |
toDOM(Element parentElement)
Serializes object to a DOM Tree and returns the root element for that Tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParentRealm(String id, String name, URL url)
public ParentRealm(String id, String name, String url) throws MalformedURLException
MalformedURLException
Method Detail |
---|
public String getId()
public void setId(String id)
public String getName()
public URL getUrl()
public void setUrl(URL url)
public URL resolveUrl(String host) throws InternalIOException
InternalIOException
public int getPriority()
public void setPriority(int priority)
public Date getLastRefreshed()
public void setLastRefreshed(Date lastRefreshed)
public int getRefreshAfter()
public void setRefreshAfter(int refreshAfter)
public boolean needsRefresh()
public Element toDOM(Element parentElement)
DOMSerializable
toDOM
in interface DOMSerializable
public static ParentRealm fromDOM(Document doc, String id) throws MalformedInputException
doc
- id
-
MalformedInputException
public static ParentRealm fromStoredDOM(Document doc, String id) throws MalformedInputException
doc
- input DOM docid
- of the entity
MalformedInputException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |