Class SecurityHandler
- java.lang.Object
-
- org.glassfish.admingui.common.handlers.SecurityHandler
-
public class SecurityHandler extends Object
- Author:
- anilam
-
-
Constructor Summary
Constructors Constructor Description SecurityHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addDefaultProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static List
getChildrenMapForTableList(List<HashMap> propList, String childType, List skipList)
static void
getFileUsers(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the list of file users for specified realm.static List<HashMap>
getListfromMap(HashMap<String,Object> props)
static void
getMessageSecurityAuthLayersForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
getProvidersByType(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
getRealmAttrForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the a Map for storing the attributes for realm creation.static void
getRealmAttrForEdit(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the a Map for storing the attributes for editing a realm.static void
getSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
getUserInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the attribute values in the Edit Manage User Password Page.static void
putOptional(Map<String,String> attrMap, List propList, String propName, String key)
static void
removeUser(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler removes users for specified realm.static void
saveMsgProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
saveRealm(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
saveSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
static void
saveUser(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler update's user info.
-
-
-
Method Detail
-
getRealmAttrForCreate
public static void getRealmAttrForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the a Map for storing the attributes for realm creation.
- Parameters:
handlerCtx
- The HandlerContext.
-
getRealmAttrForEdit
public static void getRealmAttrForEdit(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the a Map for storing the attributes for editing a realm. This can be used by either the node agent realm or the realm in configuration-Security-realm
- Parameters:
handlerCtx
- The HandlerContext.
-
getChildrenMapForTableList
public static List getChildrenMapForTableList(List<HashMap> propList, String childType, List skipList)
-
saveRealm
public static void saveRealm(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-
putOptional
public static void putOptional(Map<String,String> attrMap, List propList, String propName, String key)
-
saveUser
public static void saveUser(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler update's user info.
Input value: "Realm" -- Type:
java.lang.String
Output value: "UserId" -- Type:
java.lang.String
Output value: "GroupList" -- Type:
java.lang.String
Output value: "Password" -- Type:
java.lang.String
- Parameters:
handlerCtx
- The HandlerContext.
-
getUserInfo
public static void getUserInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the attribute values in the Edit Manage User Password Page.
Input value: "Realm" -- Type:
java.lang.String
Output value: "UserId" -- Type:
java.lang.String
Output value: "GroupList" -- Type:
java.lang.String
- Parameters:
handlerCtx
- The HandlerContext.
-
getFileUsers
public static void getFileUsers(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler returns the list of file users for specified realm.
- Parameters:
handlerCtx
- The HandlerContext.
-
removeUser
public static void removeUser(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
This handler removes users for specified realm.
- Parameters:
handlerCtx
- The HandlerContext.
-
addDefaultProviderInfo
public static void addDefaultProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-
getMessageSecurityAuthLayersForCreate
public static void getMessageSecurityAuthLayersForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) throws Exception
- Throws:
Exception
-
getProvidersByType
public static void getProvidersByType(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx) throws Exception
- Throws:
Exception
-
saveMsgProviderInfo
public static void saveMsgProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-
saveSecurityManagerValue
public static void saveSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-
getSecurityManagerValue
public static void getSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)
-
-