|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.EntitlementService
public abstract class EntitlementService
The EntitlementService is the NiMKernel module responsible for checking the entitlements associated to a given credential
Field Summary |
---|
Constructor Summary | |
---|---|
EntitlementService(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new EntitlementService |
Method Summary | |
---|---|
abstract void |
changeEntitlementCredential(Credential oldCred,
Credential newCred)
This method is used to change the user credentials to the entitlement service. |
protected abstract void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
protected abstract boolean |
isAllowed(java.lang.String action,
java.util.Map params,
Credential credential)
This method checks whether the given credential is entitled to perform the given action. |
boolean |
isAllowedForwarder(java.lang.String action,
java.util.Map params,
Credential credential)
This method is used to check whether the given credential is entitled to perform the given action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitlementService(NiMKernelServiceVisa visa)
visa
- Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.Method Detail |
---|
protected abstract void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
NiMKernelService
init
in class NiMKernelService
kernel
- Reference to the NiMKernel object that instantiated the
service.confService
- A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException
- If unable to initialize the kernel service.
NiMException
- If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.public final boolean isAllowedForwarder(java.lang.String action, java.util.Map params, Credential credential) throws java.lang.IllegalArgumentException
action
- The string representation of the action being done.params
- Reference to the parameters used to launch the given action.credential
- The credential entitled to make the given action.
java.lang.IllegalArgumentException
- If any of the given arguments are invalidprotected abstract boolean isAllowed(java.lang.String action, java.util.Map params, Credential credential) throws java.lang.IllegalArgumentException
action
- The string representation of the action being done.params
- Reference to the parameters used to launch the given action.credential
- The credential entitled to make the given action.
java.lang.IllegalArgumentException
- If any of the given arguments are invalidpublic abstract void changeEntitlementCredential(Credential oldCred, Credential newCred) throws IllegalCredentialException, NiMException
oldCred
- The original credential.newCred
- The new credential.
IllegalCredentialException
- If the given credentials are incorrect.
NiMException
- If unable to contact the back-end service.
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.