|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.assertion.components.AsnAuthorizer
public class AsnAuthorizer
Handles authorization requests for an assertion operation.
Constructor Summary | |
---|---|
AsnAuthorizer()
Default constructor. |
Method Summary | |
---|---|
void |
authorizeCreate(AsnContext context,
Assertion assertion)
Authorizes a create operation. |
void |
authorizeDelete(AsnContext context,
Assertion assertion)
Authorizes a delete operation. |
void |
authorizeDisable(AsnContext context,
Assertion assertion)
Authorizes a disable operation. |
void |
authorizeEnable(AsnContext context,
Assertion assertion)
Authorizes an enable operation. |
void |
authorizeQuery(AsnContext context)
Authorizes a query based operation. |
void |
authorizeUpdate(AsnContext context,
Assertion assertion)
Authorizes an update operation. |
boolean |
canCreate(AsnContext context,
AsnAuthPolicy policy)
Determines if the user can create an assertion. |
boolean |
canDelete(AsnContext context,
AsnAuthPolicy policy,
Assertion assertion)
Determines if a the action user can delete an assertion. |
boolean |
canDisable(AsnContext context,
AsnAuthPolicy policy,
Assertion assertion)
Determines if a the action user can disable an assertion. |
boolean |
canEnable(AsnContext context,
AsnAuthPolicy policy,
Assertion assertion)
Determines if a the action user can create an assertion. |
boolean |
canQuery(AsnContext context,
AsnAuthPolicy policy)
Determines if the user can query assertions. |
boolean |
canUpdate(AsnContext context,
AsnAuthPolicy policy,
Assertion assertion)
Determines if a the action user can update an assertion. |
void |
establishUser(AsnContext context)
Establishes the user associated with the operation. |
boolean |
getWasUserEstablished()
Gets the flag indicating whether or not the user was established. |
void |
setWasUserEstablished(boolean wasUserEstablished)
Sets the flag indicating whether or not the user was established. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsnAuthorizer()
Method Detail |
---|
public boolean getWasUserEstablished()
true
if the user was establishedpublic void setWasUserEstablished(boolean wasUserEstablished)
wasUserEstablished
- true
if the user was establishedpublic void authorizeCreate(AsnContext context, Assertion assertion) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation context
assertion the active assertion
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic void authorizeDelete(AsnContext context, Assertion assertion) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation contextassertion
- the active assertion
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic void authorizeDisable(AsnContext context, Assertion assertion) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation contextassertion
- the active assertion
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic void authorizeEnable(AsnContext context, Assertion assertion) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation contextassertion
- the active assertion
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic void authorizeQuery(AsnContext context) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation context
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic void authorizeUpdate(AsnContext context, Assertion assertion) throws NotAuthorizedException, CatalogIndexException, AsnInsufficientPrivilegeException
context
- the assertion operation contextassertion
- the active assertion
NotAuthorizedException
- if authentication was required
CatalogIndexException
- indicates an I/O error with the resource index
AsnInsufficientPrivilegeException
- if the user has insufficient privilegepublic boolean canCreate(AsnContext context, AsnAuthPolicy policy)
context
- the assertion operation contextpolicy
- the authorization policy
public boolean canDelete(AsnContext context, AsnAuthPolicy policy, Assertion assertion)
context
- the assertion operation contextpolicy
- the authorization policyassertion
- the active assertion
public boolean canDisable(AsnContext context, AsnAuthPolicy policy, Assertion assertion)
context
- the assertion operation contextpolicy
- the authorization policyassertion
- the active assertion
public boolean canEnable(AsnContext context, AsnAuthPolicy policy, Assertion assertion)
context
- the assertion operation contextpolicy
- the authorization policyassertion
- the active assertion
public boolean canQuery(AsnContext context, AsnAuthPolicy policy)
context
- the assertion operation contextpolicy
- the authorization policy
public boolean canUpdate(AsnContext context, AsnAuthPolicy policy, Assertion assertion)
context
- the assertion operation contextpolicy
- the authorization policyassertion
- the active assertion
public void establishUser(AsnContext context) throws NotAuthorizedException, AsnUnestablishedUserException
context
- the assertion operation context
NotAuthorizedException
- if authentication was required
AsnInsufficientPrivilegeException
- if the user has insufficient privilege
AsnUnestablishedUserException
- if the user could not be established
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |