|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neulevel.epp.core.EppEntity
com.neulevel.epp.core.EppDataCollectionPolicy
public class EppDataCollectionPolicy
This EppDataCollectionPolicy class implements EPP Data
Collection Policy (DCP) entity.
An EPP Data Collection Policy object describes the server's privacy policy for data collection and management. Policy implications usually extend beyond the client-server relationship. Both clients and servers can have relationships with other entities that need to know the server operator's data collection policy to make informed provisioning decisions. Policy information must be disclosed to provisioning entities, though the method of disclosing policy data outside of direct protocol interaction is beyond the scope of the EPP specification.
An EPP Data Collection Policy object contains 3 components:
| Field Summary | |
|---|---|
static java.lang.String |
ACCESS_ALL
DCP Access Type - all |
static java.lang.String |
ACCESS_NONE
DCP Access Type - none: |
static java.lang.String |
ACCESS_NULL
DCP Access Type - null |
static java.lang.String |
ACCESS_OTHER
DCP Access Type - other |
static java.lang.String |
ACCESS_PERSONAL
DCP Access Type - personal |
static java.lang.String |
ACCESS_PERSONAL_AND_OTHER
DCP Access Type - personalAndOther |
| Constructor Summary | |
|---|---|
EppDataCollectionPolicy()
Creates an EppDataCollectionPolicy object |
|
| Method Summary | |
|---|---|
void |
addStatement(EppDataCollectionStatement stmt)
Adds a data collection statement |
static EppEntity |
fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppDataCollectionPolicy object. |
java.lang.String |
getAccess()
Gets data access policy |
java.util.Calendar |
getExpiryAbsolute()
Gets the absolute policy expiry timestamp |
java.lang.String |
getExpiryRelative()
Gets the relative policy expiry timestamp |
java.util.Vector |
getStatement()
Gets the list of data collection statements |
void |
setAccess(java.lang.String type)
Sets data access policy, with one of the following values ACCESS_ALL ACCESS_NONE ACCESS_NULL ACCESS_PERSONAL ACCESS_PERSONAL_AND_OTHER ACCESS_OTHER |
void |
setExpiry(java.util.Calendar timestamp)
Sets the absolute policy expiry timestamp |
void |
setExpiry(java.lang.String duration)
Sets the relative policy expiry duration. |
void |
setStatement(java.util.Vector list)
Sets the list of data collection statements |
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc,
java.lang.String tag)
Converts the EppDataCollectionPolicy object into an XML element |
| Methods inherited from class com.neulevel.epp.core.EppEntity |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACCESS_ALL
Access is given to all identified data.
public static final java.lang.String ACCESS_NONE
No access is provided to identified data.
public static final java.lang.String ACCESS_NULL
Data is not persistent, so no access is possible.
public static final java.lang.String ACCESS_PERSONAL
Access is given to identified data relating to individuals and organizational entities.
public static final java.lang.String ACCESS_PERSONAL_AND_OTHER
Access is given to identified data relating to individuals, organizational entities, and other data of a non-personal nature.
public static final java.lang.String ACCESS_OTHER
Access is given to other identified data of a non-personal nature.
| Constructor Detail |
|---|
public EppDataCollectionPolicy()
EppDataCollectionPolicy object
| Method Detail |
|---|
public java.lang.String getAccess()
public void setAccess(java.lang.String type)
public java.util.Vector getStatement()
public void setStatement(java.util.Vector list)
public void addStatement(EppDataCollectionStatement stmt)
public java.util.Calendar getExpiryAbsolute()
public java.lang.String getExpiryRelative()
public void setExpiry(java.util.Calendar timestamp)
public void setExpiry(java.lang.String duration)
Please refer XML Schema Part 2: Datatypes for the exact definition and format of the XML duration data type.
FIXME(ning.zhang@neustar,com) - duration needs to be defined as javax.xml.datatype.Duration in JDK 1.5.
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
java.lang.String tag)
EppDataCollectionPolicy object into an XML element
toXML in class EppEntitydoc - the XML Document objecttag - the tag/element name for the EppDataCollectionPolicy object
Element objectpublic static EppEntity fromXML(org.w3c.dom.Node root)
EppDataCollectionPolicy object.
The caller of this method must make sure that the root node is of
the EPP Data Collection Statment.type.
root - root node for an EppDataCollectionPolicy object in
XML format
EppDataCollectionPolicy object, or null if the node is
invalidpublic java.lang.String toString()
toString in class EppEntity
|
EPP 0.4.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||