com.endeca.portal.attributes.viewmodel
Class Group

java.lang.Object
  extended by com.endeca.portal.attributes.model.BasePropertyContainer
      extended by com.endeca.portal.attributes.viewmodel.Group

public class Group
extends BasePropertyContainer

Represents a group object serializable via Jackson

Author:
Endeca Technologies, Inc

Field Summary
static java.lang.String ATTRIBUTE_KEYS_PROPERTY
           
static java.lang.String DISPLAY_NAME_PROPERTY
           
static java.lang.String INCLUDE_IN_NAVIGATION_PROPERTY
           
static java.lang.String INCLUDE_IN_RECORD_PROPERTY
           
static java.lang.String IS_CATCHALL_PROPERTY
           
static java.lang.String IS_DYNAMIC_PROPERTY
           
static java.lang.String LOCALIZED_DISPLAY_NAME_PROPERTY
           
static java.lang.String SORT_PROPERTY
           
 
Fields inherited from class com.endeca.portal.attributes.model.BasePropertyContainer
KEY_PROPERTY, properties
 
Constructor Summary
Group()
           
 
Method Summary
 java.util.List<java.lang.String> getAttributeKeys()
           
 java.lang.String getDisplayName()
           
 java.lang.String getDisplayName(java.util.Locale locale)
          Get display name by locale settings
 java.lang.String getDisplayName(javax.portlet.PortletRequest request)
          Get display name by request
 java.lang.String getDisplayName(java.lang.String languageId)
          Get display name bu language id
 java.lang.String getLocalizedDisplayName()
           
 java.lang.String getSort()
           
 boolean isCatchAll()
           
 boolean isDynamic()
           
 boolean isIncludeInNavigation()
           
 boolean isIncludeInRecord()
           
 void setAttributeKeys(java.util.List<java.lang.String> attributeKeys)
           
 void setCatchAll(boolean isCatchAll)
          Sets whether or not this is a catch-all group
 void setDisplayName(java.lang.String displayName)
           
 void setDynamic(boolean isDynamic)
          Sets whether or not this is a dynamic group
 void setIncludeInNavigation(boolean includeInNavigation)
          Sets whether or not the group include in Navigation
 void setIncludeInRecord(boolean includeInRecord)
          Sets whether or not the group include in record
 void setLocalizedDisplayName(java.lang.String displayName)
           
 void setSort(java.lang.String sort)
           
 
Methods inherited from class com.endeca.portal.attributes.model.BasePropertyContainer
addProperty, getKey, getProperties, getProperty, getProperty, isEmpty, isValid, setKey, setProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DISPLAY_NAME_PROPERTY

public static final java.lang.String DISPLAY_NAME_PROPERTY
See Also:
Constant Field Values

LOCALIZED_DISPLAY_NAME_PROPERTY

public static final java.lang.String LOCALIZED_DISPLAY_NAME_PROPERTY
See Also:
Constant Field Values

ATTRIBUTE_KEYS_PROPERTY

public static final java.lang.String ATTRIBUTE_KEYS_PROPERTY
See Also:
Constant Field Values

IS_DYNAMIC_PROPERTY

public static final java.lang.String IS_DYNAMIC_PROPERTY
See Also:
Constant Field Values

SORT_PROPERTY

public static final java.lang.String SORT_PROPERTY
See Also:
Constant Field Values

INCLUDE_IN_NAVIGATION_PROPERTY

public static final java.lang.String INCLUDE_IN_NAVIGATION_PROPERTY
See Also:
Constant Field Values

INCLUDE_IN_RECORD_PROPERTY

public static final java.lang.String INCLUDE_IN_RECORD_PROPERTY
See Also:
Constant Field Values

IS_CATCHALL_PROPERTY

public static final java.lang.String IS_CATCHALL_PROPERTY
See Also:
Constant Field Values
Constructor Detail

Group

public Group()
Method Detail

setDisplayName

public void setDisplayName(java.lang.String displayName)
Parameters:
displayName - the displayName to set

getDisplayName

public java.lang.String getDisplayName()
Returns:
the displayName

getDisplayName

public java.lang.String getDisplayName(java.lang.String languageId)
Get display name bu language id

Parameters:
languageId -
Returns:

getDisplayName

public java.lang.String getDisplayName(java.util.Locale locale)
Get display name by locale settings

Parameters:
locale -
Returns:

getDisplayName

public java.lang.String getDisplayName(javax.portlet.PortletRequest request)
Get display name by request

Parameters:
locale -
Returns:

setLocalizedDisplayName

public void setLocalizedDisplayName(java.lang.String displayName)
Parameters:
LocalizedDisplayName - the LocalizedDisplayName to set

getLocalizedDisplayName

public java.lang.String getLocalizedDisplayName()
Returns:
the LocalizedDisplayName

isDynamic

public boolean isDynamic()
Returns:
true if this is a "dynamic" group

setDynamic

public void setDynamic(boolean isDynamic)
Sets whether or not this is a dynamic group

Parameters:
isDynamic -

setSort

public void setSort(java.lang.String sort)
Parameters:
sort - the sort information to set

getSort

public java.lang.String getSort()
Returns:
the sort information

isIncludeInNavigation

public boolean isIncludeInNavigation()
Returns:
true if the group include in Navigation

setIncludeInNavigation

public void setIncludeInNavigation(boolean includeInNavigation)
Sets whether or not the group include in Navigation

Parameters:
includeInNavigation -

isIncludeInRecord

public boolean isIncludeInRecord()
Returns:
true if the group include in record

setIncludeInRecord

public void setIncludeInRecord(boolean includeInRecord)
Sets whether or not the group include in record

Parameters:
includeInRecord -

isCatchAll

public boolean isCatchAll()
Returns:
true if this is a "catch all" group

setCatchAll

public void setCatchAll(boolean isCatchAll)
Sets whether or not this is a catch-all group

Parameters:
isCatchAll -

setAttributeKeys

public void setAttributeKeys(java.util.List<java.lang.String> attributeKeys)
Parameters:
attributeKeys - the attributeKeys to set

getAttributeKeys

public java.util.List<java.lang.String> getAttributeKeys()
Returns:
the attributeKeys