Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsAccountInfo

        public CmsAccountInfo​(CmsAccountInfo.Field field,
                              java.lang.String addInfoKey,
                              boolean editable)
        Constructor.

        Parameters:
        field - the field
        addInfoKey - the additional info key
        editable - the editable flag
      • CmsAccountInfo

        public CmsAccountInfo​(java.lang.String field,
                              java.lang.String addInfoKey,
                              java.lang.String editable)
        Constructor.

        Parameters:
        field - the field
        addInfoKey - the additional info key
        editable - the editable flag
    • Method Detail

      • getAddInfoKey

        public java.lang.String getAddInfoKey()
        Returns the additional info key.

        Returns:
        the additional info key
      • 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