Class UserAttributeImpl
- java.lang.Object
-
- org.uberfire.ext.security.management.impl.UserAttributeImpl
-
- All Implemented Interfaces:
UserManager.UserAttribute
@Portable public class UserAttributeImpl extends Object implements UserManager.UserAttribute
Default portable User attribute implementation class.
- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description UserAttributeImpl(String name, boolean isMandatory, boolean isEditable, String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDefaultValue()The default value for an attribute.StringgetName()The attribute name.booleanisEditable()Specifies if the attribute can be modified.booleanisMandatory()Specifies if the attribute is required for creating a user or if it cannot be removed.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:UserManager.UserAttributeThe attribute name.- Specified by:
getNamein interfaceUserManager.UserAttribute- Returns:
- The attribute name.
-
isMandatory
public boolean isMandatory()
Description copied from interface:UserManager.UserAttributeSpecifies if the attribute is required for creating a user or if it cannot be removed.- Specified by:
isMandatoryin interfaceUserManager.UserAttribute- Returns:
- Is mandatory.
-
isEditable
public boolean isEditable()
Description copied from interface:UserManager.UserAttributeSpecifies if the attribute can be modified.- Specified by:
isEditablein interfaceUserManager.UserAttribute- Returns:
- Is editable.
-
getDefaultValue
public String getDefaultValue()
Description copied from interface:UserManager.UserAttributeThe default value for an attribute. Used when creating a new user and setting mandatory attributes.- Specified by:
getDefaultValuein interfaceUserManager.UserAttribute- Returns:
- The default value for the attribute, if any.
-
-