|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PumaEnvironment
The PumaEnvironment
provides functions to access virtual
principals and common properties of the User Management component.
Additionally, it offers functionality to bypass access control on Principals.
Nested Class Summary | |
---|---|
static class |
PumaEnvironment.VirtualPrincipalNames
This enumeration contains the identifiers of all available virtual principals. |
Field Summary | |
---|---|
static java.lang.String |
EXTERNAL_USERS_PARENT_DN_ALIAS
Alias for the parent DN configured for external users. |
Method Summary | ||
---|---|---|
Group |
getAllAuthenticatedUserGroup()
Deprecated. since 6.1.0.2 use #getVirtualPrincipal(PumaEnvironment.VirtualPrincipalNames.AllAuthenticatedPortalUsers)
instead. |
|
Group |
getAllExternalUserGroup()
Deprecated. since 6.1.0.2 use #getVirtualPrincipal(VirtualPrincipalNames.AllExternalPortalUsers)
instead. |
|
Group |
getAllGroupsGroup()
Deprecated. since 6.1.0.2 use #getVirtualPrincipal(VirtualPrincipalNames.AllPortalUserGroups)
instead. |
|
Group |
getAllInternalUserGroup()
Deprecated. since 6.1.0.2 use #getVirtualPrincipal(VirtualPrincipalNames.AllInternalPortalUsers)
instead. |
|
java.util.List<java.lang.String> |
getAllParentDNs()
Retrieves all parent DNs available in the current virtual portal context |
|
User |
getAnonymousUser()
Deprecated. since 6.1.0.2 use #getVirtualPrincipal(VirtualPrincipalNames.AnonymousPortalUser)
instead. |
|
java.lang.String |
getExternalParentDN()
Returns the DN that is configured for external users. |
|
java.lang.String |
getParentDN(java.lang.String alias)
Returns the DN that bound to the given alias |
|
java.util.Properties |
getStoreProperties()
Returns the Properties for the default store (PumaHome.DEFAULT_PROVIDER ) |
|
java.util.Properties |
getStoreProperties(java.lang.String storeName)
Returns the Properties for the specified store |
|
Principal |
getVirtualPrincipal(PumaEnvironment.VirtualPrincipalNames principalName)
Returns the Principal (User or Group) object referenced by the given name |
|
boolean |
isExternal(Principal aPrincipal)
Checks whether the DN of the given principal is configured as 'external'. |
|
boolean |
isVirtual(Principal principal)
Determines if the specified principal is a virtual principal |
|
boolean |
isVirtualPrincipal(Principal principal)
Deprecated. since 6.1.0.2 use isVirtual(Principal) instead. |
|
boolean |
matchesParentDN(Principal aPrincipal,
java.lang.String alias)
checks whether the DN of the given principal matches to the parent DN of the given alias |
|
|
runUnrestricted(java.security.PrivilegedExceptionAction<T> action)
Executes the code provided by PrivilegedExceptionAction without
executing Access Control filtering in the PUMA layer. |
Field Detail |
---|
static final java.lang.String EXTERNAL_USERS_PARENT_DN_ALIAS
getParentDN(String)
,
Constant Field ValuesMethod Detail |
---|
<T> T runUnrestricted(java.security.PrivilegedExceptionAction<T> action) throws java.security.PrivilegedActionException
PrivilegedExceptionAction
without
executing Access Control filtering in the PUMA layer.
The run method of the given PrivilegedExceptionAction will be executed
without enforcing access control on users and groups. Other access
control checks (e.g. on portlets or pages) are still executed.
As this method allows execution with higher authority, the execution of this
method is protected by Java 2 Security. If Java 2 Security is enabled,
calling code needs an AuthPermission "doAs"
action
- PrivilegedExceptionAction that contains the code that is to
be executed
null
will be returned if the action does not have
a return value.
java.security.PrivilegedActionException
- Exceptions of the provided action are
wrapped as PrivilegedActionException
java.lang.SecurityException
- if access is not permitted based on the current
security policy.javax.security.auth.AuthPermission
boolean isExternal(Principal aPrincipal)
aPrincipal
- the Principal to be processed. null
is
not allowed as input parameter
boolean matchesParentDN(Principal aPrincipal, java.lang.String alias)
aPrincipal
- the Principal to be processed. null
is
not allowed as input parameteralias
- the alias of the parent DN
java.lang.String getParentDN(java.lang.String alias)
alias
- - the alias that points to the stored DN.
java.lang.String getExternalParentDN()
java.util.List<java.lang.String> getAllParentDNs() throws PumaSystemException
PumaSystemException
- will be thrown whenever an unrecoverable
backend error occursUser getAnonymousUser() throws com.ibm.wps.util.DataBackendException
#getVirtualPrincipal(VirtualPrincipalNames.AnonymousPortalUser)
instead.
user
-
com.ibm.wps.util.DataBackendException
Group getAllAuthenticatedUserGroup() throws com.ibm.wps.util.DataBackendException
#getVirtualPrincipal(PumaEnvironment.VirtualPrincipalNames.AllAuthenticatedPortalUsers)
instead.
com.ibm.wps.util.DataBackendException
Group getAllGroupsGroup() throws com.ibm.wps.util.DataBackendException
#getVirtualPrincipal(VirtualPrincipalNames.AllPortalUserGroups)
instead.
com.ibm.wps.util.DataBackendException
Group getAllExternalUserGroup() throws com.ibm.wps.util.DataBackendException
#getVirtualPrincipal(VirtualPrincipalNames.AllExternalPortalUsers)
instead.
com.ibm.wps.util.DataBackendException
Group getAllInternalUserGroup() throws com.ibm.wps.util.DataBackendException
#getVirtualPrincipal(VirtualPrincipalNames.AllInternalPortalUsers)
instead.
com.ibm.wps.util.DataBackendException
boolean isVirtualPrincipal(Principal principal) throws com.ibm.wps.util.DataBackendException
isVirtual(Principal)
instead.
principal
- - the principal to test
com.ibm.wps.util.DataBackendException
boolean isVirtual(Principal principal)
principal
- - the principal to test
java.util.Properties getStoreProperties()
Properties
for the default store (PumaHome.DEFAULT_PROVIDER
)
Properties
java.util.Properties getStoreProperties(java.lang.String storeName)
Properties
for the specified store
storeName
- - the name of the store (@see
PumaHome.getController(String)
Properties
Principal getVirtualPrincipal(PumaEnvironment.VirtualPrincipalNames principalName)
principalName
- - a member of Enumeration
PumaEnvironment.VirtualPrincipalNames
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |