public interface IPolicyProvider
Modifier and Type | Method and Description |
---|---|
int |
getAccess(IThingID policyProviderConfigID,
IThingID thingID,
IThingID userID)
Evaludates and returns user's rightset on the given object
|
IRightSet |
getAccessEx(IThingID policyProviderConfigID,
IThingID thingID,
IThingID userID)
Evaludates and returns user's rightset on the given object
|
boolean |
isCacheable()
Returns flag that indicates if AccessMechanics could cache the results of this Policy providers.
|
void |
onLogin(IThingID userID,
IThingID securityRealmID,
IThingID policyProviderConfigID)
This method is called when user logs into the portal.
|
int getAccess(IThingID policyProviderConfigID, IThingID thingID, IThingID userID) throws PortalException
policyProviderConfigID
- thingID
- userID
- PortalException
IRightSet getAccessEx(IThingID policyProviderConfigID, IThingID thingID, IThingID userID) throws PortalException
policyProviderConfigID
- thingID
- userID
- PortalException
boolean isCacheable() throws PortalException
PortalException
void onLogin(IThingID userID, IThingID securityRealmID, IThingID policyProviderConfigID) throws PortalException
userID
- thing ID of the logged in usersecurityRealmID
- thing ID of the security realmpolicyProviderConfigID
- thing ID of the policy provider configuration objectPortalException