public class ParentRealm extends Object implements DOMSerializable
Modifier and Type | Class and Description |
---|---|
static class |
ParentRealm.Trilean |
Constructor and Description |
---|
ParentRealm(String id,
String name,
String url) |
ParentRealm(String id,
String name,
URL url) |
Modifier and Type | Method and Description |
---|---|
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.
|
ParentRealm.Trilean |
getAutoInherit() |
Date |
getCreated() |
String |
getId() |
Date |
getLastRefreshed() |
Date |
getLastUpdated() |
String |
getName() |
int |
getPriority() |
int |
getRefreshAfter() |
URL |
getUrl() |
boolean |
needsRefresh(Date lR) |
URL |
resolveUrl(String host) |
void |
setAutoInherit(ParentRealm.Trilean autoInherit) |
void |
setCreated(Date created) |
void |
setId(String id) |
void |
setLastRefreshed(Date lastRefreshed) |
void |
setLastUpdated(Date lastUpdated) |
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.
|
public ParentRealm(String id, String name, String url) throws MalformedURLException
MalformedURLException
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 getLastUpdated()
public void setLastUpdated(Date lastUpdated)
public Date getLastRefreshed()
public void setLastRefreshed(Date lastRefreshed)
public Date getCreated()
public void setCreated(Date created)
public int getRefreshAfter()
public void setRefreshAfter(int refreshAfter)
public ParentRealm.Trilean getAutoInherit()
public void setAutoInherit(ParentRealm.Trilean autoInherit)
public boolean needsRefresh(Date lR)
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 entityMalformedInputException
Copyright © 2008-2015 Index Data. All Rights Reserved.