Interface IWebAppMechanics
- All Superinterfaces:
IAccessMechanics
,IComponent
,IInitializable
,IMechanics
,ISystemHandler
Mechanics for performing access checking optimized for the webApplication.
-
Field Summary
Fields inherited from interface com.webmethods.portal.mech.access.IAccessMechanics
ACCESS_DENIED, ACCESS_GRANTED, ACCESS_RIGHT_ID, ACCESS_RIGHT_LONG_NAME, ACCESS_RIGHT_SHORT_NAME, ACCESS_RIGHTS_CONTAINER, ACCESS_UNSPECIFIED, AUTH_LEVEL_ANONYMOUS, AUTH_LEVEL_BASIC, AUTH_LEVEL_DEFAULT, AUTH_LEVEL_FULL_ACCESS, AUTH_LEVEL_KERBEROS, AUTH_LEVEL_NTLM, AUTH_LEVEL_PROPERTY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccess
(IThingID itemId, IThingID userId, int rights, Map<?, ?> capabilities) Check access for a given thingID.Methods inherited from interface com.webmethods.portal.mech.access.IAccessMechanics
canRemoveAccess, canRemoveSecurityRealm, canSetAccess, canSetAuthentication, canSetOwner, canSetSecurityRealm, checkAccessEx, checkRemoveAccess, checkRemoveSecurityRealm, checkSetAccess, checkSetAuthentication, checkSetOwner, checkSetSecurityRealm, cloneAces, fireRemoveAcccesEvent, fireRemoveAcccesEvent, fireRemoveSecurityRealmEvent, fireSetAccessEvent, fireSetAccessEvent, fireSetAuthenticationEvent, fireSetAuthenticationEvent, fireSetOwnerEvent, fireSetOwnerEvent, fireSetSecurityRealmEvent, getAccess, getAccessEx, getAccessList, getAccessListEx, getAclView, getAuthLevelForAuthScheme, getAuthScheme, getAuthSchemeForAuthLevel, getAuthSchemeForResource, getAvailableAuthSchemes, getDefaultAuthScheme, getRightNameForValue, getRightsForType, getRightValueForName, getSecurityRealm, invalidateAcesForThing, invalidateAcesForUser, listSecurityRealmObjects, removeAces, removeSecurityRealm, setAces, setAcesEx, setSecurityRealm, setSecurityRealm
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Method Details
-
checkAccess
void checkAccess(IThingID itemId, IThingID userId, int rights, Map<?, ?> capabilities) throws PortalExceptionCheck access for a given thingID.- Specified by:
checkAccess
in interfaceIAccessMechanics
- Parameters:
itemId
-IURI
of itemuserId
-IThingID
of userrights
- The requested rights (@see com.webmethods.portal.service.meta2.access.IAccessRight)capabilities
- Known set of capabilities for this user. May be null, in which case they'll be looked up from theIContext.SCOPE_REQUEST
attributes on the user'sIContext
.- Throws:
PortalException
- if the userId is invalid.
-