Opened 12 years ago

Last modified 11 years ago

#11 new task

OOPify: Convert DNSDB.pm to full object model

Reported by: Kris Deugau Owned by: somebody
Priority: trivial Milestone:
Version: Keywords:
Cc:

Description

May not bother.

Change History (23)

comment:1 by Kris Deugau, 11 years ago

(In [465]) /trunk

Object conversion of DNSDB.pm, 1 of <mumble>. See #11.

  • object initialization and shutdown

comment:2 by Kris Deugau, 11 years ago

(In [466]) /trunk

Object conversion of DNSDB.pm, 2 of <mumble>. See #11.

  • general internal utility subs

comment:3 by Kris Deugau, 11 years ago

(In [467]) /trunk

Object conversion of DNSDB.pm, 3 of <mumble>. See #11.

  • internal record data validation subs

comment:4 by Kris Deugau, 11 years ago

(In [468]) /trunk

Object conversion of DNSDB.pm, 4 of <mumble>. See #11.

  • Convert initialization of bundled callers to object calls

comment:5 by Kris Deugau, 11 years ago

(In [469]) /trunk

Object conversion of DNSDB.pm, 5 of <mumble>. See #11.

  • convert a couple more initialization/setup subs

comment:6 by Kris Deugau, 11 years ago

(In [470]) /trunk

Object conversion of DNSDB.pm, 6 of <mumble>. See #11.

  • convert isParent(), fix up partial caller conversion that shouldn't have been committed in r469

comment:7 by Kris Deugau, 11 years ago

(In [471]) /trunk

Object conversion of DNSDB.pm, 7 of <mumble>. See #11.

  • internal calls to _ipparent and _hostparent

comment:8 by Kris Deugau, 11 years ago

(In [473]) /trunk

Object conversion of DNSDB.pm, 8 of <mumble>. See #11.

  • update domainName(), revName(), userFullName(), groupName() and parentID(), and callers

comment:9 by Kris Deugau, 11 years ago

(In [474]) /trunk

Object conversion of DNSDB.pm, 9 of <mumble>. See #11.

  • update entry to getPermissions() and changePermissions(), update callers

comment:10 by Kris Deugau, 11 years ago

(In [476]) /trunk

Object conversion of DNSDB.pm, 10 of <mumble>. See #11.

  • group manipulation and data-retrieval subs changeGroup(), addGroup(), delGroup(), getChildren(), getGroupCount(), and getGroupList()

comment:11 by Kris Deugau, 11 years ago

(In [477]) /trunk

Object conversion of DNSDB.pm, 11 of <mumble>. See #11.

  • convert addDomain(), delZone(), addRDNS(), getZoneCount(), getZoneList() getZoneLocation(), zoneStatus(), and getZonesByCIDR() and callers
  • fix a couple of missed utility calls in dns-rpc.cgi as well

comment:12 by Kris Deugau, 11 years ago

(In [479]) /trunk

Object conversion of DNSDB.pm, 12 of <mumble>. See #11.

  • user subs addUser(), getUserCount(), getUserList(), getUserDropdown(), updateUser(), delUser(), userStatus(), and getUserData() and callers

comment:13 by Kris Deugau, 11 years ago

(In [480]) /trunk

Object conversion of DNSDB.pm, 13 of <mumble>. See #11.

  • location add/update/delete/retrieve in addLoc(), updateLoc(), delLoc(), getLoc(), getLocCount(), getLocList(), and getLocDropdown() and callers

comment:14 by Kris Deugau, 11 years ago

(In [481]) /trunk

Object conversion of DNSDB.pm, 14 of <mumble>. See #11.

  • record manipulation: getSOA(), getRecLine(), getDomRecs(), getRecCount(), addRec(), updateRec(), downconvert(), and delRec() and callers.

comment:15 by Kris Deugau, 11 years ago

(In [482]) /trunk

Missed a cal to getDomRecs() in r481; see #11.

comment:16 by Kris Deugau, 11 years ago

(In [483]) /trunk

Object conversion of DNSDB.pm, part 15. See #11.

  • log-retrieval subs getLogCount() and getLogEntries(), miscellaneous retrieval subs getRevPattern() and getTypelist(), and mailNotify()

comment:17 by Kris Deugau, 11 years ago

(In [484]) /trunk

Object conversion of DNSDB.pm, part 16. See #11.

  • importAXFR(). While we're meddling, update the calling convention so it's easier to set the various flags separately.

comment:18 by Kris Deugau, 11 years ago

(In [485]) /trunk

Object conversion of DNSDB.pm, part 16. See #11.

  • export() and its caller

comment:19 by Kris Deugau, 11 years ago

(In [485]) /trunk

Object conversion of DNSDB.pm, part 17. See #11.

  • export() and its caller

comment:20 by Kris Deugau, 11 years ago

(In [486]) /trunk

Object conversion of DNSDB.pm, part 18. See #11.

  • clean up a couple of missed method calls in dns.cgi and dns-rpc.cgi, and a couple of references to the obsoleted %config

comment:21 by Kris Deugau, 11 years ago

(In [487]) /trunk

Object conversion of DNSDB.pm, part 19. See #11.

  • internal calls to _log()

comment:22 by Kris Deugau, 11 years ago

(In [488]) /trunk

Object conversion of DNSDB.pm, part 20. See #11.

  • get rid of not-quite-global %userdata hash used for logging; if someone wants to use multiple DNSDB objects chances are they'll want to initialize them with separate users.

comment:23 by Kris Deugau, 11 years ago

(In [489]) /trunk

Object conversion of DNSDB.pm, part 21. See #11.

  • remove %permissions global from module; all the access controls are checked on the caller's side. Declare it in dns.cgi instead (the only place it's checked).
Note: See TracTickets for help on using tickets.