Package org.cyclos.impl.utils
Class PasswordActionHelper
- java.lang.Object
-
- org.cyclos.impl.utils.PasswordActionHelper
-
public class PasswordActionHelper extends Object
Helper class for password actions
-
-
Constructor Summary
Constructors Constructor Description PasswordActionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsetAtRegistration(ProductDTO dto, PasswordType passwordType)Finds and marks the given password type at registrationstatic voidsetMyPasswordActions(ProductDTO dto, PasswordType passwordTypeAtRegistration)Enables my password actions for the given productstatic voidsetPasswordAction(ProductPasswordActionDTO action, boolean set)Enables or disables all the possible actions of the given password actionstatic voidsetPasswordActions(Collection<? extends ProductPasswordActionDTO> actions, boolean set)Enables or disables all the possible actions of the given password actions collectionstatic voidsetUserPasswordActions(UserManagementProductDTO dto)Enables user management password actions for the given product
-
-
-
Method Detail
-
setAtRegistration
public static void setAtRegistration(ProductDTO dto, PasswordType passwordType)
Finds and marks the given password type at registration
-
setMyPasswordActions
public static void setMyPasswordActions(ProductDTO dto, PasswordType passwordTypeAtRegistration)
Enables my password actions for the given product- Parameters:
passwordTypeAtRegistration- the type to be marked at registration
-
setPasswordAction
public static void setPasswordAction(ProductPasswordActionDTO action, boolean set)
Enables or disables all the possible actions of the given password action
-
setPasswordActions
public static void setPasswordActions(Collection<? extends ProductPasswordActionDTO> actions, boolean set)
Enables or disables all the possible actions of the given password actions collection
-
setUserPasswordActions
public static void setUserPasswordActions(UserManagementProductDTO dto)
Enables user management password actions for the given product
-
-