Class UserRoleListEnhancedUserMapEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.pentaho.platform.plugin.services.security.userrole.memory.UserRoleListEnhancedUserMapEditor
-
- All Implemented Interfaces:
PropertyEditor
public class UserRoleListEnhancedUserMapEditor extends PropertyEditorSupport
Property editor to assist with the setup of aUserRoleListEnhancedUserMap
.The format of entries should be:
username=password,grantedAuthority[,grantedAuthority][,enabled|disabled]
The
password
must always be the first entry after the equals. Theenabled
ordisabled
keyword can appear anywhere (apart from the first entry reserved for the password). If neitherenabled
ordisabled
appear, the default isenabled
. At least one granted authority must be listed.The
username
represents the key and duplicates are handled the same was as duplicates would be in JavaProperties
files.If the above requirements are not met, the invalid entry will be silently ignored.
This editor always assumes each entry has a non-expired account and non-expired credentials. However, it does honour the user enabled/disabled flag as described above.
- Version:
- $Id: UserRoleListEnhancedUserMapEditor.java,v 1.1 2006/04/19 04:57:50 mbatchelor Exp $
- Author:
- Ben Alex
-
-
Constructor Summary
Constructors Constructor Description UserRoleListEnhancedUserMapEditor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserRoleListEnhancedUserMap
addUsersFromProperties(UserRoleListEnhancedUserMap userMap, Properties props)
void
setAsText(String s)
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
-
-
-
Method Detail
-
setAsText
public void setAsText(String s) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
addUsersFromProperties
public static UserRoleListEnhancedUserMap addUsersFromProperties(UserRoleListEnhancedUserMap userMap, Properties props)
-
-