|
![]() |
|||||||||
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
com.nitido.nimx.services.entitlement.sim.EntitlementServiceImpl
public class EntitlementServiceImpl
This class provides an implemenation of the EntitlementService for simulation purposes.
Field Summary |
---|
Constructor Summary | |
---|---|
EntitlementServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new EntitlementService |
Method Summary | |
---|---|
void |
changeEntitlementCredential(Credential oldCred,
Credential newCred)
This method always allow the credential change. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used by the NiMKernel to initialize the EntitlementService. |
boolean |
isAllowed(java.lang.String request,
java.util.Map params,
Credential credential)
Check whether the given credential is entitled to perform the given request. |
Methods inherited from class com.nitido.nim.EntitlementService |
---|
isAllowedForwarder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitlementServiceImpl(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 void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
init
in class EntitlementService
kernel
- Reference to the kernel object that instantiated this
service.confService
- Reference to the ConfigurationService.
InitializationFailedException
- If unable to initialize this service. This exception is
never thrown by this service implementation.
NiMException
- If unable to establish connection to the service back-end.
This exception is never thrown by this service
implementation.public boolean isAllowed(java.lang.String request, java.util.Map params, Credential credential) throws java.lang.IllegalArgumentException
isAllowed
in class EntitlementService
request
- The string representation of the request being done.params
- Reference to the parameters used to launch the given request.credential
- The credential entitled to make the given request.
java.lang.IllegalArgumentException
- If any of the given arguments are invalid. This exception
is never thrown by this service implementation.public void changeEntitlementCredential(Credential oldCred, Credential newCred)
changeEntitlementCredential
in class EntitlementService
oldCred
- The original credential.newCred
- The new credential.
|
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.