FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Ajax\AjaxManageToken Class Reference

Class to handle ajax calls to revoke an API token. More...

Inheritance diagram for Fossology\UI\Ajax\AjaxManageToken:
Inheritance graph
Collaboration diagram for Fossology\UI\Ajax\AjaxManageToken:
Collaboration graph

Public Attributes

const NAME = "manage-token"
 
- Public Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
const PERMISSION = "permission"
 
const REQUIRES_LOGIN = "requiresLogin"
 
const ENABLE_MENU = "ENABLE_MENU"
 
const LEVEL = "level"
 
const DEPENDENCIES = "dependencies"
 
const INIT_ORDER = "initOrder"
 
const MENU_LIST = "menuList"
 
const MENU_ORDER = "menuOrder"
 
const MENU_TARGET = "menuTarget"
 
const TITLE = "title"
 

Protected Member Functions

 handle (Request $request)
 Revoke an active API token. More...
 
- Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 RegisterMenus ()
 Customize submenus.
 
 render ($templateName, $vars=null, $headers=null)
 
 getDefaultHeaders ()
 
 getDefaultVars ()
 
 mergeWithDefault ($vars)
 
 flushContent ($content)
 

Private Member Functions

 invalidateToken ($tokenPk)
 

Private Attributes

 $dbManager
 

Additional Inherited Members

- Public Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 __construct ($name, $parameters=array())
 
 getName ()
 
 getVersion ()
 
 getTitle ()
 
 isRequiresLogin ()
 
 getDependency ()
 
 getPluginLevel ()
 
 getDBaccess ()
 
 getState ()
 
 getInitOrder ()
 
 getNoMenu ()
 
 getResponse ()
 
 getObject ($name)
 
 preInstall ()
 
 postInstall ()
 
 unInstall ()
 
 execute ()
 
 isLoggedIn ()
 
 __get ($name)
 
 __toString ()
 
- Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
 $container
 
 $renderer
 
 $microMenu
 

Detailed Description

Class to handle ajax calls to revoke an API token.

Definition at line 22 of file AjaxManageToken.php.

Member Function Documentation

◆ handle()

Fossology\UI\Ajax\AjaxManageToken::handle ( Request  $request)
protected

Revoke an active API token.

Parameters
Request$request
Returns
Response Status as true if token is revoked or false on failure.

Reimplemented from Fossology\Lib\Plugin\DefaultPlugin.

Definition at line 45 of file AjaxManageToken.php.

◆ invalidateToken()

Fossology\UI\Ajax\AjaxManageToken::invalidateToken (   $tokenPk)
private

Mark a token as invalid/inactive.

Parameters
int$tokenPkThe token id to be revoked
Returns
array Array with success status.

Definition at line 118 of file AjaxManageToken.php.

Member Data Documentation

◆ $dbManager

DbManager Fossology\UI\Ajax\AjaxManageToken::$dbManager
private

DB manager to use

Definition at line 29 of file AjaxManageToken.php.


The documentation for this class was generated from the following file: