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 voidaddDefaultProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static ListgetChildrenMapForTableList(List<HashMap> propList, String childType, List skipList)static voidgetFileUsers(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 voidgetMessageSecurityAuthLayersForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidgetProvidersByType(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidgetRealmAttrForCreate(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)This handler returns the a Map for storing the attributes for realm creation.static voidgetRealmAttrForEdit(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)This handler returns the a Map for storing the attributes for editing a realm.static voidgetSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidgetUserInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)This handler returns the attribute values in the Edit Manage User Password Page.static voidputOptional(Map<String,String> attrMap, List propList, String propName, String key)static voidremoveUser(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)This handler removes users for specified realm.static voidsaveMsgProviderInfo(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidsaveRealm(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidsaveSecurityManagerValue(com.sun.jsftemplating.layout.descriptors.handler.HandlerContext handlerCtx)static voidsaveUser(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.StringOutput value: "UserId" -- Type:
java.lang.StringOutput value: "GroupList" -- Type:
java.lang.StringOutput 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.StringOutput value: "UserId" -- Type:
java.lang.StringOutput 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)
-
-