This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
access:internet_key_api_development [2011/02/01 17:50] mjallison |
access:internet_key_api_development [2012/10/10 16:20] (current) |
||
---|---|---|---|
Line 13: | Line 13: | ||
__**methods**__ | __**methods**__ | ||
* **AnnouncementList getAnnouncements( int id, String product )** - Returns a list of announcements with id values greater than "id" and specified for the product with the specific product code. To see all announcements regardless, use id == -1 and product == "". | * **AnnouncementList getAnnouncements( int id, String product )** - Returns a list of announcements with id values greater than "id" and specified for the product with the specific product code. To see all announcements regardless, use id == -1 and product == "". | ||
- | * **LicenseKeyList getLicenses( String product, bool free )** - Returns a list of licenses for a specified product. //(probably need to make this a product list)// Tristate on free? ALL, USED, FREE? | + | * **LicenseKeyList getLicenses( String product )** - Returns a list of licenses for a specified product. //(probably need to make this a product list)// |
* **void checkoutLicense( LicenseKey l )** - Causes the specified license to be checked out. | * **void checkoutLicense( LicenseKey l )** - Causes the specified license to be checked out. | ||
* **void checkinLicense( LicenseKey l )** - Causes the specified license to be returned to the server pool. | * **void checkinLicense( LicenseKey l )** - Causes the specified license to be returned to the server pool. | ||
Line 27: | Line 27: | ||
__**methods**__ | __**methods**__ | ||
* **UserList listUsers( LicenseKey l )** - Lists users currently assigned to the key | * **UserList listUsers( LicenseKey l )** - Lists users currently assigned to the key | ||
+ | * **StorageUser addUser(String id, int customer, int type, boolean isAdmin, boolean isSupport, String password)** - Moved method from CustomerAdmin API. | ||
* **StorageUser addUser( String id, int type, boolean isAdmin, String password )** - Restricted form to support only customer admins, AGTEK Support to use the method in Agtek SupportAPI. | * **StorageUser addUser( String id, int type, boolean isAdmin, String password )** - Restricted form to support only customer admins, AGTEK Support to use the method in Agtek SupportAPI. | ||
* **void addUser( LicenseKey l, StorageUser u )** - Adds a user to the specific key. | * **void addUser( LicenseKey l, StorageUser u )** - Adds a user to the specific key. | ||
* **void removeUser( LicenseKey l, StorageUser u )** -- Removes a user from the specified key. | * **void removeUser( LicenseKey l, StorageUser u )** -- Removes a user from the specified key. | ||
+ | * **void updateLicenseMaxCheckout( LicenseKey l, long newDuration )** -- Modifies the license duration. | ||
===== SupportAPI (AGTEK Employees only) ===== | ===== SupportAPI (AGTEK Employees only) ===== | ||
Line 39: | Line 41: | ||
__**methods**__ | __**methods**__ | ||
- | * **StorageUser addUser(String id, int customer, int type, boolean isAdmin, boolean isSupport, String password)** - Moved method from CustomerAdmin API. | + | * **LicenseKey createLicense( licenseType, customerId, maxUsers, maxCheckoutPeriod, expireTime, products, timedProducts, timedExpire() )** - Create a new key for the user. |
- | * **LicenseKey createKey( Customer c, LicenseType t )** - Create a new key for the user. | + | * **void deleteLicense( LicenseKey l )** - Delete a key, and all of it's user assignments. |
- | * **void deleteKey( LicenseKey l )** - Delete a key, and all of it's user assignments. | + | * **void updateLicense( LicenseKey l )** - Updates the contents of the key in the database (same id) with changes. |
- | * **void updateKey( LicenseKey l )** - Updates the contents of the key in the database (same id) with changes. | + | * **void unlockLicense( LicenseKey l )** - Removes the checkout of the License Key. |
* **void updateUser( StorageUser u )** - Modified to handle Role. | * **void updateUser( StorageUser u )** - Modified to handle Role. | ||
- | * **void updateCusteomer( StorageCustomer c )** - Updated to handle //hasAccess// and //hasLicense// flags. | + | * **void updateCustomer( StorageCustomer c )** - Updated to handle //maxUsers//, //hasAccess// and //hasLicense// flags. |
+ | |||
+ | ===== Storage User ===== | ||
+ | The StorageUser object represents a userinstance in the AGTEK Access authentication system. Users are used to scope operations (role based authorization) and to associate with software license keys. StorageUser objects are documented (JavaDoc style) here: http://dev.agtek.com/AccessJavaDocs/index.html | ||
+ | |||
+ | ===== License Key ===== | ||
+ | The LicenseKey object represents an instance of a license key in the AGTEK Access System. LicenseKey objects contain the key identifier, the key parameters, and associated users. While the LicenseKey may represent all this information as being aggregated, it may not be implemented that way in the Access database. | ||
+ | |||
+ | int(32) LicenseKey.getId() | ||
+ | int(16) LicenseKey.getCustomerId() | ||
+ | int | ||
====== Mapping from Solo ====== | ====== Mapping from Solo ====== | ||
- | This table provides the equivalent calls between the Solo system and the new system. Calls are based at the ASP level of functionality. It is envisioned that a new C++ wrapper would be written for the AGTEK desktop apps to plug into the security model. | + | This table provides the equivalent calls between the Solo system and the new system. Calls are based at the ASP level of functionality. It is envisioned that a new C++ wrapper would be written for the AGTEK desktop apps to plug into the security model. It is expected that a new class (equivalent to SoftwareKey/Network key would need to be written to be able to plug into the existing frameworks. |
+ | | **ASP Function** |**New Function** |**Description**| | ||
+ | |AddFloatingUser.asp |admin.addUser(l,u) |Add user to a license key| | ||
+ | |AddFloatingUserPassword.asp|admin.setPassword(u,p) |Set/reset password on user.| | ||
+ | |DeleteFloatingUser.asp |admin.deleteUser(u) |Delete specified user.| | ||
+ | |GetCheckedOutKey.asp |admin.checkoutLicense(l)|Checkout the specified license.| | ||
+ | |GetCompanyCrossRef.asp |N/A |Not needed, customer ops scoped by admin login| | ||
+ | |GetFloatingUsers.asp |admin.getUsers() |List all potential users for current customer| | ||
+ | |GetMaxFloatingUsers.asp |license.getMaxUsers() |Maximum users per key allowable.| | ||
+ | |GetNetKeyDaysAway.asp |license.getMaxDuration()|Get duration from license.| | ||
+ | |GetNetKeysAvail.asp |admin.getLicenses(prod,free) |List keys available for product| | ||
+ | |GetNetKeysInUse.asp |admin.getLicenses(prod,free) |List keys available for product| | ||
+ | |GetRegDataAG.asp |? not used in CNetworkKey|Called in CSoftwareKey::GetSoftwareLicense| | ||
+ | |GetUpdatesAG.asp |? not used in CNetworkKey|Called in SoftwareKey::FindPage | | ||
+ | |ModFloatingUser.asp |admin.updateUser(u) |Modify/update user record| | ||
+ | |ModNetKeyDaysAway.asp |admin.updateLicenseDuration(l, long)|Set the duration on a license. | ||
+ | |NoNetworkKeys.asp |access.submitLicenseComment(str)|Add comment to license audit log.| | ||
+ | |ReleaseLicense.asp |access.checkinLicense(l)|Release/Checkin the lock on the license| | ||
+ | |SetFloatingUser.asp |admin.addUser(l,u) |Adds user to a license key.| |