7 #ifndef __COMMON_DATA_H__
8 #define __COMMON_DATA_H__
57 IP_NETWORK_CREATE = 50,
78 ASN_RESERVE_CREATE = 80,
178 bool operator<(
const NSIPAddr &ip)
const {
179 return addr < ip.addr;
187 return name < n.name;
199 bool operator<(
const IpRange &ipRange)
const
201 if (_ipBegin.compare(ipRange._ipBegin) < 0) {
205 if (_ipBegin.compare(ipRange._ipBegin) == 0) {
206 if (_ipEnd.compare(ipRange._ipEnd) < 0) {
224 void set_version(
const string &version)
229 string get_version()
const
234 void set_ipBegin(
const string &ipBegin)
239 string get_ipBegin()
const
244 void set_ipEnd(
const string &ipEnd)
249 string get_ipEnd()
const
254 void set_available(
const bool &available)
256 _available = available;
259 bool get_available()
const
273 #if USE_IP_MANAGEMENT
276 vector<string> nameservers;
278 #endif //USE_IP_MANAGEMENT
300 string get_type()
const
305 void set_type(
const string& type)
311 string get_name()
const
316 void set_name(
const string& name)
322 string get_org()
const
327 void set_org(
const string& org)
333 string get_str1()
const
338 void set_str1(
const string& str1)
344 string get_str2()
const
349 void set_str2(
const string& str2)
355 string get_str3()
const
360 void set_str3(
const string& str3)
366 string get_city()
const
371 void set_city(
const string& city)
377 string get_sp()
const
382 void set_sp(
const string& sp)
388 string get_pc()
const
393 void set_pc(
const string& pc)
399 string get_cc()
const
404 void set_cc(
const string& cc)
410 bool get_type_f()
const
415 bool get_name_f()
const
420 bool get_org_f()
const
425 bool get_str1_f()
const
430 bool get_str2_f()
const
435 bool get_str3_f()
const
440 bool get_city_f()
const
445 bool get_sp_f()
const
450 bool get_pc_f()
const
455 bool get_cc_f()
const
518 return ((flag == 0 || flag == 1) &&
519 (name_int || name_loc || org_int || org_loc || addr_int ||
520 addr_loc || voice || fax || email));
539 void set_id(
const string &
id);
557 void set_fax(
const Phone& fax);
699 if (value ==
"addPeriod") {
701 }
else if (value ==
"autoRenewPeriod") {
702 return AUTO_RENEW_PERIOD;
703 }
else if (value ==
"renewPeriod") {
705 }
else if (value ==
"transferPeriod") {
706 return TRANSFER_PERIOD;
707 }
else if (value ==
"pendingDelete") {
708 return PENDING_DELETE;
709 }
else if (value ==
"pendingRestore") {
710 return PENDING_RESTORE;
711 }
else if (value ==
"redemptionPeriod") {
712 return REDEMPTION_PERIOD;
729 case AUTO_RENEW_PERIOD:
730 return "autoRenewPeriod";
732 return "renewPeriod";
733 case TRANSFER_PERIOD:
734 return "transferPeriod";
736 return "pendingDelete";
737 case PENDING_RESTORE:
738 return "pendingRestore";
739 case REDEMPTION_PERIOD:
740 return "redemptionPeriod";
786 if (level ==
"premium") {
788 }
else if (level ==
"standard") {
827 return _name < other._name;
870 _level = DefRegLevel::NONE;
926 if (operationStr ==
"query") {
928 }
else if (operationStr ==
"request") {
930 }
else if (operationStr ==
"cancel") {
932 }
else if (operationStr ==
"approve") {
934 }
else if (operationStr ==
"reject") {
943 #endif //__COMMON_DATA_H__
void set_level(const DefRegLevel::Value level)
Sets the name's level.
Definition: CommonData.H:852
string _id
Contact id.
Definition: CommonData.H:640
void set_name(const string &name)
Sets the name.
Definition: CommonData.H:834
DefRegName()
Default constructor.
Definition: CommonData.H:801
CommonData()
Constructor.
Definition: CommonData.H:530
void set_id(const string &id)
Sets the object's id.
string _pw
password
Definition: CommonData.H:168
bool get_email_f() const
Returns the object's email change flag.
Definition: CommonData.H:623
static Value stringToStatus(const string &value)
Convert a text based status into a enum status.
Definition: CommonData.H:698
string get_email() const
Returns the object's email.
Value
Possible operation values.
Definition: CommonData.H:885
Disclose get_disclose() const
Returns the object's disclosure policy.
void set_disclose(const Disclose &disclose)
Sets the object's disclosure policy.
bool get_fax_f() const
Returns the object's fax change flag.
Definition: CommonData.H:608
void set_email(const string &email)
Sets the object's email.
EPP defensive registration Name Class.
Definition: CommonData.H:797
Definition: CommonData.H:183
Definition: CommonData.H:667
Phone _fax
Contact's fax (optional)
Definition: CommonData.H:652
string _roid
repository object ID
Definition: CommonData.H:162
EPP RGP Status Class.
Definition: CommonData.H:678
PostalInfo class.
Definition: CommonData.H:281
vector< PostalInfo > _postal_info
Postal Info list (just 1 or 2 elements)
Definition: CommonData.H:643
void set_roid(const string &roid)
Sets repository object ID.
Definition: CommonData.H:103
void set_fax(const Phone &fax)
Sets the object's fax number.
Value
Possible name's values.
Definition: CommonData.H:752
void insert_postal_info(const PostalInfo &postal_info)
Inserts postal information into the object.
string get_roid() const
Returns repository object ID.
Definition: CommonData.H:115
Describes IpRange structure.
Definition: CommonData.H:192
EPP defensive registration Level Class.
Definition: CommonData.H:748
Phone get_fax() const
Returns the object's fax number.
static string toStr(const Value operation)
Definition: CommonData.H:900
bool get_pw_f() const
Returns the password change flag.
Definition: CommonData.H:146
static string statusToString(const Value value)
Convert a enum based status into a text status.
Definition: CommonData.H:723
void set_voice(const Phone &voice)
Sets the object's voice telephone number.
AuthInfo()
Default constructor.
Definition: CommonData.H:94
Phone _voice
Contact's voice telephone number (optional)
Definition: CommonData.H:646
bool get_roid_f() const
Returns the roid change flag.
Definition: CommonData.H:121
void reset()
Reset all object attributes.
Definition: CommonData.H:152
Definition: CommonData.H:491
string get_name() const
Returns the name.
Definition: CommonData.H:843
vector< PostalInfo > get_postal_info() const
Returns the object's postal information.
static Value fromStr(const string operationStr)
Definition: CommonData.H:925
bool operator<(const DefRegName &other) const
Definition: CommonData.H:825
bool _pw_f
password change flag
Definition: CommonData.H:171
EPP CommonData Class.
Definition: CommonData.H:487
Value
List of RGP status acording to RFC 3915.
Definition: CommonData.H:682
Phone get_voice() const
Returns the object's voice telephone number.
ActionType
Action Types.
Definition: CommonData.H:23
string get_pw() const
Returns the password.
Definition: CommonData.H:140
Disclose _disclose
Disclose information (optional)
Definition: CommonData.H:664
EPP Transfer Operation Class.
Definition: CommonData.H:881
DefRegName(const string &name, const DefRegLevel::Value level)
Constructor.
Definition: CommonData.H:812
bool _roid_f
roid change flag
Definition: CommonData.H:165
bool get_voice_f() const
Returns the object's voice change flag.
Definition: CommonData.H:593
Definition: CommonData.H:524
bool _email_f
E-mail change flag.
Definition: CommonData.H:661
DefRegLevel::Value get_level() const
Return name's level.
Definition: CommonData.H:861
bool _voice_f
Voice change flag.
Definition: CommonData.H:649
Definition: CommonData.H:175
static Value fromStr(const string &level)
Definition: CommonData.H:784
void reset()
Resets object attributes.
Definition: CommonData.H:867
string get_id() const
Returns the object's id.
bool _fax_f
Fax change flag.
Definition: CommonData.H:655
string _email
Contact's email.
Definition: CommonData.H:658
void set_pw(const string &pw)
Sets password.
Definition: CommonData.H:130
static string toStr(const Value level)
Definition: CommonData.H:764
AuthInfo Class.
Definition: CommonData.H:83
void reset()
reset attributes