public class TermsAndConditionsTemplate extends AbstractDistributableCertifiedDatabaseEntry
AbstractDistributableDatabaseEntry.SerialDBEntry, AbstractDistributableDatabaseEntry.Serials| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INFOSERVICE_CONTAINER_PATH |
static java.lang.String |
INFOSERVICE_PATH |
static java.lang.String |
INFOSERVICE_SERIALS_PATH |
static java.lang.String[] |
REPLACEMENT_ELEMENT_NAMES |
static java.lang.String |
TERMS_AND_CONDITIONS_TYPE_COMMON_LAW |
static java.lang.String |
TERMS_AND_CONDITIONS_TYPE_GENERAL_LAW |
static java.lang.String |
TERMS_AND_CONDITIONS_TYPE_GERMAN_LAW |
static java.lang.String |
XML_ELEMENT_CONTAINER_NAME |
static java.lang.String |
XML_ELEMENT_NAME |
XML_ATTR_LAST_UPDATE, XML_ATTR_SERIAL, XML_ATTR_VALID, XML_ATTR_VERIFIEDXML_LAST_UPDATEFIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRINGFIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
TermsAndConditionsTemplate(org.w3c.dom.Element element,
long aLong) |
TermsAndConditionsTemplate(java.io.File a_file) |
TermsAndConditionsTemplate(org.w3c.dom.Node rootNode) |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
createTCDocument(TermsAndConditions.Translation tcTranslation) |
boolean |
equals(java.lang.Object a_object) |
static java.util.Enumeration |
getAllStoredRefIDs() |
static TermsAndConditionsTemplate |
getById(java.lang.String a_id,
boolean a_bUpdateFromInfoService) |
MultiCertPath |
getCertPath() |
java.lang.String |
getDate() |
org.w3c.dom.Document |
getDocument() |
java.lang.String |
getId()
Returns a unique ID for a database entry.
|
java.lang.String |
getLanguage() |
long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance.
|
java.lang.String |
getPostFile()
Returns the filename (InfoService command) to which the data of this entry is posted at the
other infoservice.
|
TCComposite |
getSections() |
XMLSignature |
getSignature() |
org.w3c.dom.Document |
getSignedDocument() |
java.lang.String |
getType() |
long |
getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two
entries are compared (higher version number -> more recent entry).
|
org.w3c.dom.Element |
getXmlStructure()
Returns the XML structure for this db entry.
|
int |
hashCode() |
boolean |
isValid() |
boolean |
isVerified()
Returns if this entry has been verified with a certificate chain.
|
static void |
loadFromDirectory(java.io.File a_dir) |
void |
setSignedDocument(org.w3c.dom.Document signedDocument) |
static void |
store(org.w3c.dom.Element root) |
java.lang.String |
transform(TermsAndConditions.Translation translation) |
void |
transform(java.io.Writer writer,
TermsAndConditions.Translation translation) |
checkIdgetHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElementdeletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTimepublic static final java.lang.String INFOSERVICE_PATH
public static final java.lang.String INFOSERVICE_CONTAINER_PATH
public static final java.lang.String INFOSERVICE_SERIALS_PATH
public static final java.lang.String[] REPLACEMENT_ELEMENT_NAMES
public static java.lang.String TERMS_AND_CONDITIONS_TYPE_COMMON_LAW
public static java.lang.String TERMS_AND_CONDITIONS_TYPE_GERMAN_LAW
public static java.lang.String TERMS_AND_CONDITIONS_TYPE_GENERAL_LAW
public static java.lang.String XML_ELEMENT_CONTAINER_NAME
public static java.lang.String XML_ELEMENT_NAME
public TermsAndConditionsTemplate(org.w3c.dom.Element element,
long aLong)
throws XMLParseException
XMLParseExceptionpublic TermsAndConditionsTemplate(org.w3c.dom.Node rootNode)
throws XMLParseException
XMLParseExceptionpublic TermsAndConditionsTemplate(java.io.File a_file)
throws XMLParseException,
java.io.IOException
XMLParseExceptionjava.io.IOExceptionpublic org.w3c.dom.Document createTCDocument(TermsAndConditions.Translation tcTranslation)
public java.lang.String transform(TermsAndConditions.Translation translation)
public void transform(java.io.Writer writer,
TermsAndConditions.Translation translation)
throws java.io.IOException,
javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic java.lang.String getType()
public java.lang.String getId()
AbstractDatabaseEntrygetId in interface IDistributablegetId in class AbstractDatabaseEntrypublic long getLastUpdate()
AbstractDatabaseEntrygetLastUpdate in class AbstractDatabaseEntrypublic long getVersionNumber()
AbstractDatabaseEntrygetVersionNumber in class AbstractDatabaseEntrypublic java.lang.String getLanguage()
public java.lang.String getDate()
public java.lang.String getPostFile()
IDistributablepublic boolean isVerified()
AbstractDistributableCertifiedDatabaseEntryisVerified in interface ICertifiedDatabaseEntryisVerified in class AbstractDistributableCertifiedDatabaseEntrypublic boolean isValid()
public TCComposite getSections()
public static void store(org.w3c.dom.Element root)
public static java.util.Enumeration getAllStoredRefIDs()
public static void loadFromDirectory(java.io.File a_dir)
public static TermsAndConditionsTemplate getById(java.lang.String a_id, boolean a_bUpdateFromInfoService)
public boolean equals(java.lang.Object a_object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic XMLSignature getSignature()
getSignature in interface ICertifiedDatabaseEntrygetSignature in class AbstractDistributableCertifiedDatabaseEntrypublic MultiCertPath getCertPath()
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Document getSignedDocument()
public void setSignedDocument(org.w3c.dom.Document signedDocument)
public org.w3c.dom.Element getXmlStructure()
AbstractDistributableDatabaseEntrygetXmlStructure in class AbstractDistributableDatabaseEntryCopyright © 2023. All rights reserved.