org.objectweb.jonas.webapp.jonasadmin.security
Class BaseMemoryRealmAction
java.lang.Object
Action
org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction
org.objectweb.jonas.webapp.jonasadmin.security.BaseSecurityAction
org.objectweb.jonas.webapp.jonasadmin.security.BaseMemoryRealmAction
- Direct Known Subclasses:
- ApplyConfirmMemoryRealmAction, ApplyDatasourceRealmAction, ApplyGroupMemoryRealmAction, ApplyLdapRealmAction, ApplyMemoryRealmAction, ApplyRoleMemoryRealmAction, ApplyUserMemoryRealmAction, EditGroupMemoryRealmAction, EditMemoryRealmAction, EditMemoryRealmGroupsAction, EditMemoryRealmRolesAction, EditMemoryRealmUsersAction, EditNewGroupMemoryRealmAction, EditNewRoleMemoryRealmAction, EditNewUserMemoryRealmAction, EditRoleMemoryRealmAction, EditUserMemoryRealmAction, ListRealmsAction
- public abstract class BaseMemoryRealmAction
- extends BaseSecurityAction
- See Also:
- Serialized Form
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction |
deploy, deployDataSource, deployMailFactory, getCurrentJonasDeployment, getForwardEdit, getListDeployableFiles, getListDeployedFiles, refreshMBeansTree, refreshServiceTree, refreshTree, runGC, setCurrentJonasDeployment, undeploy, undeployDataSource, undeployMailFactory |
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction |
addGlobalError, executeAction, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, perform, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseMemoryRealmAction
public BaseMemoryRealmAction()
getForm
protected MemoryRealmForm getForm(ActionMapping p_Mapping,
javax.servlet.http.HttpServletRequest p_Request)
removeItemsMemoryRealmForm
protected void removeItemsMemoryRealmForm(java.lang.String p_Type)
- Remove of session the
ItemsMemoryRealmForm
instance
if the given type is different of the current type.
- Parameters:
p_Type
- Current type (user, role, group)
populateUserForm
protected void populateUserForm(MemoryRealmForm p_RealmForm,
UserMemoryRealmForm p_UserForm,
java.lang.String p_UserName)
throws java.lang.Exception
- Populate the
UserMemoryRealmForm
with MBeans.
If the user name is null, the User MBean is not called to populate the form.
- Parameters:
p_RealmForm
- Used for the resource namep_UserForm
- Form to populatep_UserName
- The user (Can be null)
- Throws:
java.lang.Exception
encryptPassword
protected java.lang.String encryptPassword(java.lang.String p_Password,
java.lang.String p_EncrypMethod)
throws java.lang.Exception
- Encrypt a password with MBean security service method.
- Parameters:
p_Password
- Password to encryptp_EncrypMethod
- MD5 or SHA string
- Returns:
- The encrypted password
- Throws:
java.lang.Exception
populateRoleForm
protected void populateRoleForm(MemoryRealmForm p_RealmForm,
RoleMemoryRealmForm p_RoleForm,
java.lang.String p_RoleName)
throws java.lang.Exception
- Populate the
RoleMemoryRealmForm
with MBeans.
If the Role name is null, the Role MBean is not called to populate the form.
- Parameters:
p_RealmForm
- Used for the resource namep_RoleForm
- Form to populatep_RoleName
- The user (Can be null)
- Throws:
java.lang.Exception
populateGroupForm
protected void populateGroupForm(MemoryRealmForm p_RealmForm,
GroupMemoryRealmForm p_GroupForm,
java.lang.String p_GroupName)
throws java.lang.Exception
- Populate the
GroupMemoryRealmForm
with MBeans.
If the user name is null, the Group MBean is not called to populate the form.
- Parameters:
p_RealmForm
- Used for the resource namep_GroupForm
- Form to populatep_GroupName
- The user (Can be null)
- Throws:
java.lang.Exception