Opened 8 years ago

Last modified 6 years ago

#11 new task

OOPify: Convert DNSDB.pm to full object model

Reported by: kdeugau Owned by: somebody
Priority: trivial Milestone:
Version: Keywords:
Cc:

Description

May not bother.

Change History (23)

comment:1 Changed 6 years ago by kdeugau

(In [465]) /trunk

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

  • object initialization and shutdown

comment:2 Changed 6 years ago by kdeugau

(In [466]) /trunk

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

  • general internal utility subs

comment:3 Changed 6 years ago by kdeugau

(In [467]) /trunk

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

  • internal record data validation subs

comment:4 Changed 6 years ago by kdeugau

(In [468]) /trunk

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

  • Convert initialization of bundled callers to object calls

comment:5 Changed 6 years ago by kdeugau

(In [469]) /trunk

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

  • convert a couple more initialization/setup subs

comment:6 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(In [471]) /trunk

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

  • internal calls to _ipparent and _hostparent

comment:8 Changed 6 years ago by kdeugau

(In [473]) /trunk

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

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

comment:9 Changed 6 years ago by kdeugau

(In [474]) /trunk

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

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

comment:10 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(In [482]) /trunk

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

comment:16 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(In [485]) /trunk

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

  • export() and its caller

comment:19 Changed 6 years ago by kdeugau

(In [485]) /trunk

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

  • export() and its caller

comment:20 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(In [487]) /trunk

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

  • internal calls to _log()

comment:22 Changed 6 years ago by kdeugau

(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 Changed 6 years ago by kdeugau

(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.