Package org.gluu.oxtrust.action
Class UpdatePersonAction
java.lang.Object
org.gluu.oxtrust.action.UpdatePersonAction
- All Implemented Interfaces:
Serializable
@ConversationScoped
@Named("updatePersonAction")
@Secure("#{permissionService.hasPermission(\'person\', \'access\')}")
public class UpdatePersonAction
extends Object
implements Serializable
Action class for updating person's attributes
- Author:
- Yuriy Movchan Date: 10.23.2010
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd()Initializes attributes for adding new personcancel()delete()Delete selected person from ldapvoidgetClientName(String inum) org.gluu.oxauth.model.fido.u2f.protocol.DeviceDatagetGroupName(String dn) getInum()Returns person's inumReturns personbooleanisUpdate()Return true if person is being updated, false if adding new personbooleanvoidvoidsave()Saves person to ldapvoidsetConfirmPassword(String confirmPassword) voidsetDeviceDataMap(List<GluuDeviceDataBean> deviceDataMap) voidsetDeviceDetail(org.gluu.oxauth.model.fido.u2f.protocol.DeviceData deviceDetail) voidsetDeviceToBeRemove(GluuDeviceDataBean deviceToBeRemove) voidsetExternalAuthCustomAttributes(List<String> externalAuthCustomAttributes) voidsetFidoDevice(GluuCustomFidoDevice fidoDevice) voidsetGluuStatus(String gluuStatus) voidSets person's inumvoidsetPassword(String password) voidsetPwiToBeRemove(GluuUserPairwiseIdentifier pwiToBeRemove) voidsetUserPairWideIdentifiers(List<GluuUserPairwiseIdentifier> userPairWideIdentifiers) syncEmailReverse(GluuCustomPerson gluuCustomPerson, boolean isScim2) One-way sync from "mail" to "oxTrustEmail".update()Initializes attributes for updating personbooleanvoidvalidateConfirmPassword(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent comp, Object value)
-
Constructor Details
-
UpdatePersonAction
public UpdatePersonAction()
-
-
Method Details
-
getPassword
-
setPassword
-
getConfirmPassword
-
setConfirmPassword
-
getPwiToBeRemove
-
setPwiToBeRemove
-
getUserPairWideIdentifiers
-
setUserPairWideIdentifiers
-
getFidoDevice
-
setFidoDevice
-
getDeviceDataMap
-
setDeviceDataMap
-
getDeviceDetail
public org.gluu.oxauth.model.fido.u2f.protocol.DeviceData getDeviceDetail() -
setDeviceDetail
public void setDeviceDetail(org.gluu.oxauth.model.fido.u2f.protocol.DeviceData deviceDetail) -
getExternalAuthCustomAttributes
-
setExternalAuthCustomAttributes
-
getGluuStatus
-
setGluuStatus
-
add
Initializes attributes for adding new person- Returns:
- String describing success of the operation
- Throws:
Exception
-
update
Initializes attributes for updating person- Returns:
- String describing success of the operation
- Throws:
Exception
-
cancel
-
save
Saves person to ldap- Returns:
- String describing success of the operation
- Throws:
Exception
-
syncEmailReverse
public GluuCustomPerson syncEmailReverse(GluuCustomPerson gluuCustomPerson, boolean isScim2) throws Exception One-way sync from "mail" to "oxTrustEmail". This method takes current values of "oxTrustEmail" attribute, deletes those that do not match any of those in "mail", and adds new ones that are missing.- Parameters:
gluuCustomPerson-isScim2-- Returns:
- Throws:
Exception
-
delete
Delete selected person from ldap- Returns:
- String describing success of the operation
- Throws:
Exception
-
getGroupName
-
getInum
Returns person's inum- Returns:
- inum
-
setInum
Sets person's inum- Parameters:
inum-
-
getPerson
Returns person- Returns:
- GluuCustomPerson
-
isUpdate
public boolean isUpdate()Return true if person is being updated, false if adding new person- Returns:
-
getActiveInactiveStatuses
-
validateConfirmPassword
public void validateConfirmPassword(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent comp, Object value) -
isValidPassword
public boolean isValidPassword() -
removePairWiseIdentifier
-
removeDevice
public void removeDevice() -
fetchFidoRecord
- Throws:
Exception
-
userNameIsUniqAtCreationTime
-
getClientName
-
getDeviceToBeRemove
-
setDeviceToBeRemove
-