Constructor
AuthorizationCache
AuthorizationCache
(mixed $dbIndex)
Creates a new Authorization object, caches it, and inserts it into the database.
-
ref
$agentId: object agentId who is authorized to perform this Function for this Qualifer and its descendants
-
ref
$functionId: object functionId the Id of the Function for this Authorization
-
ref
$qualifierId: object qualifierId the Id of the Qualifier for this Authorization
-
object DateAndTime
$effectiveDate: effectiveDate when the Authorization becomes effective
-
object DateAndTime
$expirationDate: expirationDate when the Authorization stops being effective
Creates a new Function, insertsi in the DB and caches it.
ref
createFunction
(ref $functionId, string $displayName, string $description, ref $functionType, ref $qualifierHierarchyId)
-
ref
$functionId: object functionId is externally defined
-
string
$displayName: displayName the name to display for this Function
-
string
$description: description the description of this Function
-
ref
$functionType: object functionType the Type of this Function
-
ref
$qualifierHierarchyId: object qualifierHierarchyId the Id of the Qualifier Hierarchy associated with this Function
Creates a new Qualifier in the Authorization Service. This is different than making a new instance of a Qualifier object locally as the Qualifier will be inserted into the Authorization Service.
Qualifier
createQualifier
(
ref $qualifierId,
string $displayName,
string $description,
ref $qualifierType,
ref $parentId)
-
ref
$qualifierId: object qualifierId is externally defined
-
string
$displayName: displayName the name to display for this Qualifier
-
string
$description: description the description of this Qualifier
-
ref
$qualifierType: object qualifierType the Type of this Qualifier
-
ref
$parentId: object parentId the parent of this Qualifier
Creates a new Qualifier in the Authorization Service that has no parent. This is different from making a new instance of a Qualifier object locally as the Qualifier will be inserted into the Authorization Service.
ref
createRootQualifier
(ref $qualifierId, string $displayName, string $description, ref $qualifierType, ref $qualifierHierarchyId)
-
ref
$qualifierId: object qualifierId is externally defined
-
string
$displayName: displayName the name to display for this Qualifier
-
string
$description: description the description of this Qualifier
-
ref
$qualifierType: object qualifierType the Type of this Qualifier
-
ref
$qualifierHierarchyId: object qualifierHierarchyId the Id of the Qualifier Hierarchy associated with this Qualifier
Deletes the given Authorization.
void
deleteAuthorization
(ref $authorization)
-
ref
$authorization: object authorization The Authorization to delete.
Deletes the given Authorization.
void
deleteFunction
(ref $functionId)
-
ref
$functionId: object authorization The Authorization to delete.
Deletes the given Authorization.
void
deleteQualifier
(ref $qualifierId)
-
ref
$qualifierId: object authorization The Authorization to delete.
Auxilliary private function that returns Authorizations according to a
criteria. Null values are interpreted as wildmarks. Warning: $returnExplicitOnly = false will increase the running time significantly - USE SPARINGLY!
ref
getAZs
(string $aId, string $fId, string $qId, object fType $fType, boolean $returnExplicitOnly, boolean $searchUp, boolean $isActiveNow, [mixed $groupIds = array()])
-
string
$aId: aId The string id of an agent.
-
string
$fId: fId The string id of a function.
-
string
$qId: qId The string id of a qualifier. This parameter can not be null and used as a wildmark.
-
object fType
$fType: The type of a function.
-
boolean
$returnExplicitOnly: returnExplicitOnly If True, only explicit Authorizations will be returned.
-
boolean
$searchUp: searchUp If true, the ancester nodes of the qualifier will be checked as well
-
boolean
$isActiveNow: isActiveNow If True, only active Authorizations will be returned.
Returns the Function with the specified id.
ref
getFunction
(string $idValue)
-
string
$idValue: id The id of the function.
Get all the Function of the specified Type.
ref
getFunctions
(ref $functionType)
-
ref
$functionType: object functionType the Type of the Functions to return
Get all the Function of the specified Type.
ref
getFunctionTypes
(ref 0)
-
ref
0: object functionType the Type of the Functions to return
Returns the Qualifier with the specified id.
ref
getQualifier
(string $qualifierId)
-
string
$qualifierId: id The id of the Qualifier .
Returns the Qualifier with the specified id.
ref
getQualifierDescendants
(string $qualifierId)
-
string
$qualifierId: id The id of the Qualifier .
Given a QualifierHierarchy Id, returns the Qualifier that is the root of the tree of Qualifiers of this Type.
object QualifierIterator
getRootQualifiers
(object qualifierHierarchyId $qualifierHierarchyId)
-
object qualifierHierarchyId
$qualifierHierarchyId