Package org.opencms.workplace
Class CmsAccountInfo
- java.lang.Object
-
- org.opencms.workplace.CmsAccountInfo
-
public class CmsAccountInfo extends java.lang.Object
Account info bean.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CmsAccountInfo.Field
Account info fields.
-
Constructor Summary
Constructors Constructor Description CmsAccountInfo(java.lang.String field, java.lang.String addInfoKey, java.lang.String editable)
Constructor.CmsAccountInfo(CmsAccountInfo.Field field, java.lang.String addInfoKey, boolean editable)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAddInfoKey()
Returns the additional info key.CmsAccountInfo.Field
getField()
Returns the field.java.lang.String
getValue(CmsUser user)
Returns the account info value for the given user.boolean
isAdditionalInfo()
Returns whether this is an additional info field.boolean
isEditable()
Returns if the field is editable.
-
-
-
Constructor Detail
-
CmsAccountInfo
public CmsAccountInfo(CmsAccountInfo.Field field, java.lang.String addInfoKey, boolean editable)
Constructor.- Parameters:
field
- the fieldaddInfoKey
- the additional info keyeditable
- the editable flag
-
CmsAccountInfo
public CmsAccountInfo(java.lang.String field, java.lang.String addInfoKey, java.lang.String editable)
Constructor.- Parameters:
field
- the fieldaddInfoKey
- the additional info keyeditable
- the editable flag
-
-
Method Detail
-
getAddInfoKey
public java.lang.String getAddInfoKey()
Returns the additional info key.- Returns:
- the additional info key
-
getField
public CmsAccountInfo.Field getField()
Returns the field.- Returns:
- the field
-
getValue
public java.lang.String getValue(CmsUser user)
Returns the account info value for the given user.- Parameters:
user
- the user- Returns:
- the value
-
isAdditionalInfo
public boolean isAdditionalInfo()
Returns whether this is an additional info field.- Returns:
true
in case of an additional info field
-
isEditable
public boolean isEditable()
Returns if the field is editable.- Returns:
- if the field is editable
-
-