Esri Geoportal Server
1.0

com.esri.gpt.server.assertion.components
Class AsnAuthPolicy

java.lang.Object
  extended by com.esri.gpt.server.assertion.components.AsnAuthPolicy

public class AsnAuthPolicy
extends Object

Represents a configured authorization policy associated with an operation.


Constructor Summary
AsnAuthPolicy()
          Default constructor.
AsnAuthPolicy(AsnAuthPolicy objectToDuplicate)
          Construct by duplicating an existing object.
 
Method Summary
 AsnAuthPolicy duplicate()
          Produces a deep clone of the object.
 boolean getAllowNonLocalResourceIds()
          Gets the flag indicating whether or not non local resource IDs are allowed.
 boolean getAuthenticationRequired()
          Gets the flag indicating whether or not authentication is required.
 AsnPrincipals getCreatePrincipals()
          Gets the accepted principals required when creating a new assertion.
 AsnPrincipals getDeletePrincipals()
          Gets the accepted principals required when deleting an assertion.
 AsnPrincipals getEnableDisablePrincipals()
          Gets the accepted principals required when enabling/disabling an assertion.
 boolean getMultiplePerUserSubjectPredicate()
          Gets the flag indicating whether or not a user can have multiple assertions per subject/predicate pair.
 AsnPrincipals getQueryPrincipals()
          Gets the accepted principals required when querying existing assertions.
 AsnPrincipals getUpdatePrincipals()
          Gets the accepted principals required when updating an existing assertion.
 void setAllowNonLocalResourceIds(boolean allow)
          Sets the flag indicating whether or not non local resource IDs are allowed.
 void setAuthenticationRequired(boolean required)
          Sets the flag indicating whether or not authentication is required.
 void setCreatePrincipals(AsnPrincipals principals)
          Sets the accepted principals required when creating a new assertion.
 void setDeletePrincipals(AsnPrincipals principals)
          Sets the accepted principals required when deleting an assertion.
 void setEnableDisablePrincipals(AsnPrincipals principals)
          Sets the accepted principals required when enabling/disabling an assertion.
 void setMultiplePerUserSubjectPredicate(boolean allowed)
          Sets the flag indicating whether or not a user can have multiple assertions per subject/predicate pair.
 void setQueryPrincipals(AsnPrincipals principals)
          Sets the accepted principals required when querying existing assertions.
 void setUpdatePrincipals(AsnPrincipals principals)
          Sets the accepted principals required when updating an existing assertion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnAuthPolicy

public AsnAuthPolicy()
Default constructor.


AsnAuthPolicy

public AsnAuthPolicy(AsnAuthPolicy objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

getAllowNonLocalResourceIds

public boolean getAllowNonLocalResourceIds()
Gets the flag indicating whether or not non local resource IDs are allowed.

Returns:
true if non local resource IDs are allowed

setAllowNonLocalResourceIds

public void setAllowNonLocalResourceIds(boolean allow)
Sets the flag indicating whether or not non local resource IDs are allowed.

Parameters:
allow - true if non local resource IDs are allowed

getAuthenticationRequired

public boolean getAuthenticationRequired()
Gets the flag indicating whether or not authentication is required.

Returns:
true if authentication is required

setAuthenticationRequired

public void setAuthenticationRequired(boolean required)
Sets the flag indicating whether or not authentication is required.

Parameters:
required - true if authentication is required

getCreatePrincipals

public AsnPrincipals getCreatePrincipals()
Gets the accepted principals required when creating a new assertion.
Authorization should given if the user has any member of the set.

Returns:
the principals

setCreatePrincipals

public void setCreatePrincipals(AsnPrincipals principals)
Sets the accepted principals required when creating a new assertion.
Authorization should given if the user has any member of the set.

Parameters:
principals - the principals

getDeletePrincipals

public AsnPrincipals getDeletePrincipals()
Gets the accepted principals required when deleting an assertion.
Authorization should given if the user has any member of the set.

Returns:
the principals

setDeletePrincipals

public void setDeletePrincipals(AsnPrincipals principals)
Sets the accepted principals required when deleting an assertion.
Authorization should given if the user has any member of the set.

Parameters:
principals - the principals

getEnableDisablePrincipals

public AsnPrincipals getEnableDisablePrincipals()
Gets the accepted principals required when enabling/disabling an assertion.
Authorization should given if the user has any member of the set.

Returns:
the principals

setEnableDisablePrincipals

public void setEnableDisablePrincipals(AsnPrincipals principals)
Sets the accepted principals required when enabling/disabling an assertion.
Authorization should given if the user has any member of the set.

Parameters:
principals - the principals

getMultiplePerUserSubjectPredicate

public boolean getMultiplePerUserSubjectPredicate()
Gets the flag indicating whether or not a user can have multiple assertions per subject/predicate pair.

Returns:
true if multiple assertions per user per subject is allowed

setMultiplePerUserSubjectPredicate

public void setMultiplePerUserSubjectPredicate(boolean allowed)
Sets the flag indicating whether or not a user can have multiple assertions per subject/predicate pair.

Parameters:
allowed - true if multiple assertions per user/subject/predicate is allowed

getQueryPrincipals

public AsnPrincipals getQueryPrincipals()
Gets the accepted principals required when querying existing assertions.
Authorization should given if the user has any member of the set.

Returns:
the principals

setQueryPrincipals

public void setQueryPrincipals(AsnPrincipals principals)
Sets the accepted principals required when querying existing assertions.
Authorization should given if the user has any member of the set.

Parameters:
principals - the principals

getUpdatePrincipals

public AsnPrincipals getUpdatePrincipals()
Gets the accepted principals required when updating an existing assertion.
Authorization should given if the user has any member of the set.

Returns:
the principals

setUpdatePrincipals

public void setUpdatePrincipals(AsnPrincipals principals)
Sets the accepted principals required when updating an existing assertion.
Authorization should given if the user has any member of the set.

Parameters:
principals - the principals

duplicate

public AsnAuthPolicy duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new AsnAuthPolicy(this);

Returns:
the duplicated object

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.