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_VERIFIED
XML_LAST_UPDATE
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
FIELD_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) |
checkId
getHttpRequestString, getHttpSerialsRequestString, getPostData, getPostEncoding, toXmlElement
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime, setExpireTime
public 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
XMLParseException
public TermsAndConditionsTemplate(org.w3c.dom.Node rootNode) throws XMLParseException
XMLParseException
public TermsAndConditionsTemplate(java.io.File a_file) throws XMLParseException, java.io.IOException
XMLParseException
java.io.IOException
public 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.IOException
javax.xml.transform.TransformerException
public java.lang.String getType()
public java.lang.String getId()
AbstractDatabaseEntry
getId
in interface IDistributable
getId
in class AbstractDatabaseEntry
public long getLastUpdate()
AbstractDatabaseEntry
getLastUpdate
in class AbstractDatabaseEntry
public long getVersionNumber()
AbstractDatabaseEntry
getVersionNumber
in class AbstractDatabaseEntry
public java.lang.String getLanguage()
public java.lang.String getDate()
public java.lang.String getPostFile()
IDistributable
public boolean isVerified()
AbstractDistributableCertifiedDatabaseEntry
isVerified
in interface ICertifiedDatabaseEntry
isVerified
in class AbstractDistributableCertifiedDatabaseEntry
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public XMLSignature getSignature()
getSignature
in interface ICertifiedDatabaseEntry
getSignature
in class AbstractDistributableCertifiedDatabaseEntry
public 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()
AbstractDistributableDatabaseEntry
getXmlStructure
in class AbstractDistributableDatabaseEntry
Copyright © 2023. All rights reserved.