Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.security.elsupport
Interface WebCenterSecurityContextSupport


public interface WebCenterSecurityContextSupport

Provides EL support for WebCenter Security


Method Summary
 boolean isCurrentUser(java.lang.String userName)
          Checks if current user name matches the one specified.
 boolean isUserInAppRole(java.lang.String appRoleName)
          Checks if current user is in application role.
 boolean isUserInGroup(java.lang.String groupName)
          Checks if the current user is a member of the specified enterprise group.
 boolean isUserInScopedRole(java.lang.String scopedAppRoleName)
          Checks if current user is in group space role.

 

Method Detail

isUserInScopedRole

boolean isUserInScopedRole(java.lang.String scopedAppRoleName)
Checks if current user is in group space role. Role membership is checked against the current Group Space Identifier / Scope Id.
EL: #{WCSecurityContext.userInScopedRole['Moderator']}
Available in WebCenter Spaces only.
Parameters:
scopedAppRoleName - Group Space role name in the current scope
Returns:
true if current user is in the specified scoped role name, false otherwise

isUserInGroup

boolean isUserInGroup(java.lang.String groupName)
Checks if the current user is a member of the specified enterprise group.
EL: #{WCSecurityContext.userInGroup['Administrators']}
Parameters:
groupName - enterprise group name
Returns:
if current user is a member of the specified enterprise group, false otherwise

isUserInAppRole

boolean isUserInAppRole(java.lang.String appRoleName)
Checks if current user is in application role.
EL: #{WCSecurityContext.userInAppRole['SiteResourceAdmin']}
Parameters:
appRoleName - application role name
Returns:
true if current user is in the specified role name, false otherwise

isCurrentUser

boolean isCurrentUser(java.lang.String userName)
Checks if current user name matches the one specified.
EL: #{WCSecurityContext.currentUser['weblogic']}
Parameters:
userName - user name to check against
Returns:
true if current user name equals specified userName, false otherwise

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.