BEAST
eu.baltrad.beast.security.IAuthorizationRequestManager Interface Reference

Manages the authorization requests (preferrably in a database) More...

Inheritance diagram for eu.baltrad.beast.security.IAuthorizationRequestManager:
eu.baltrad.beast.security.AuthorizationRequestManager

Public Member Functions

void add (AuthorizationRequest request)
 Adds a request (note, requestuuid must be != null).
 
AuthorizationRequest get (int id)
 
AuthorizationRequest get (String uuid, boolean outgoing)
 
AuthorizationRequest getByRemoteAddress (String remoteAddress)
 Returns an authorization request based on remote address.
 
AuthorizationRequest getByNodeName (String nodeName)
 Returns an authorization request based on node name.
 
List< AuthorizationRequestfindByRemoteHost (String address)
 
List< AuthorizationRequestfindByOutgoing (boolean outgoing)
 Allows searching based on outgoing or incomming requests.
 
List< AuthorizationRequestlist ()
 
void update (AuthorizationRequest request)
 Updates the authorization request by identifying row from id.
 
void remove (int requestId)
 
void remove (String uuid)
 
String createUUID ()
 
Authorization toAuthorization (AuthorizationRequest request)
 
AuthorizationRequest createRequest ()
 Creates an authorization request.
 

Detailed Description

Manages the authorization requests (preferrably in a database)

Author
anders

Member Function Documentation

◆ add()

void eu.baltrad.beast.security.IAuthorizationRequestManager.add ( AuthorizationRequest request)

Adds a request (note, requestuuid must be != null).

Upon success, the id will be updated with the new serial

Parameters
requestthe request to add to storage

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ createRequest()

AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.createRequest ( )

Creates an authorization request.

Returns
the authorization request

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ createUUID()

String eu.baltrad.beast.security.IAuthorizationRequestManager.createUUID ( )
Returns
a unique UUID that can be used as request uuid

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ findByOutgoing()

List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.findByOutgoing ( boolean outgoing)

Allows searching based on outgoing or incomming requests.

Parameters
outgoingif outgoing or not
Returns
list of authorization requests

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ findByRemoteHost()

List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.findByRemoteHost ( String address)
Parameters
addressthe remote host address
Returns
a list of requestes with specified remote host address

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ get() [1/2]

AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.get ( int id)
Parameters
idthe unique id
Returns
the request with specified id

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ get() [2/2]

AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.get ( String uuid,
boolean outgoing )
Parameters
uuidthe unique uuid
outgoingif the fetched request should be incoming/outgoing request object
Returns
the request with specified id

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ getByNodeName()

AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.getByNodeName ( String nodeName)

Returns an authorization request based on node name.

Should not be allowed with more than one.

Parameters
nodeNamethe node name
Returns
the authorization request if found, otherwise null

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ getByRemoteAddress()

AuthorizationRequest eu.baltrad.beast.security.IAuthorizationRequestManager.getByRemoteAddress ( String remoteAddress)

Returns an authorization request based on remote address.

Should not be allowed with more than one.

Parameters
remoteAddressthe remote address
Returns
the authorization request if found, otherwise null

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ list()

List< AuthorizationRequest > eu.baltrad.beast.security.IAuthorizationRequestManager.list ( )
Returns
all authorization requests. Either incomming or outgoing.

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ remove() [1/2]

void eu.baltrad.beast.security.IAuthorizationRequestManager.remove ( int requestId)
Parameters
requestIdthe request id to the request to be removed

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ remove() [2/2]

void eu.baltrad.beast.security.IAuthorizationRequestManager.remove ( String uuid)
Parameters
uuidthe request uuid to the request to be removed

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ toAuthorization()

Authorization eu.baltrad.beast.security.IAuthorizationRequestManager.toAuthorization ( AuthorizationRequest request)
Parameters
requestthe request to be translated into an authorization
Returns
the authorization instance

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.

◆ update()

void eu.baltrad.beast.security.IAuthorizationRequestManager.update ( AuthorizationRequest request)

Updates the authorization request by identifying row from id.

Parameters
requestthe request to update

Implemented in eu.baltrad.beast.security.AuthorizationRequestManager.


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