com.jalios.jcms
Class Group

java.lang.Object
  extended by com.jalios.jstore.BasicStorable
      extended by com.jalios.jcms.Data
          extended by com.jalios.jcms.Group
All Implemented Interfaces:
EditableData, JcmsConstants, ImportConstants, MashupConstants, Storable, JaliosConstants, Cloneable, Comparable<BasicStorable>

public class Group
extends Data
implements EditableData

A Group object is referenced by a set of Member instances.

Version:
$Revision: 22158 $
Author:
Olivier Dedieu
See Also:
Member

Nested Class Summary
static class Group.LastLdapSyncComparator
           
static class Group.MemberCountComparator
           
static class Group.NameComparator
           
static class Group.NameSelector
          Select groups by their name.
static class Group.NotificationPeriodSelector
          Select groups that have at least one NotificationCriteria for which the period is equal to the period of the period given to the constructor.
static class Group.OrderComparator
           
static class Group.ParentSelector
           
static class Group.WorkspaceComparator
           
static class Group.WorkspaceSelector
          DataSelector selecting Groups based on their Workspace.
 
Nested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorComparator, Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator
 
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator, BasicStorable.IdComparator, BasicStorable.MdateComparator
 
Field Summary
protected  int cookieMaxAge
           
protected  int cookieMaxAgeResolved
           
protected  Date lastLdapSynchro
           
protected  String ldapDN
           
protected  boolean ldapSync
           
protected  String name
           
protected  Notification notification
           
protected  int order
           
protected  HashSet<Group> parentSet
           
static String REVISION
           
protected  HashMap<String,DataRight> rightFromClassMap
           
protected  String typeReferrer
           
protected  int typeReferrerCount
           
protected  TreeSet<Category> useCategorySet
           
protected  boolean webdavAccess
           
protected  Workspace workspace
           
 
Fields inherited from class com.jalios.jcms.Data
author, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, opAuthor, opDelegate
 
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, mdate, store
 
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CRYPT_MD5, CRYPT_UNDEFINED, CRYPT_UNIX, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DAILY_MAIL_ALERT, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, MONTHLY_MAIL_ALERT, NO_MAIL_ALERT, OP_CREATE, OP_DEEP_COPY, OP_DEEP_DELETE, OP_DELETE, OP_MERGE, OP_UPDATE, PDATE_SEARCH, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WEEKLY_MAIL_ALERT, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
 
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
 
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP
 
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG
 
Constructor Summary
Group()
           
Group(Group other)
           
 
Method Summary
 void addParent(Group group)
          Adds the given group to the parent set of this group.
 WKRole belongsToRole()
          Retrieve the first WKRole instance this groups belongs to.
 boolean belongsToRole(WKRole role)
          Checks if this group is defined in the specified WKRole.
 boolean canDeleteOther(Class<? extends Publication> clazz)
          Check if this group can delete object of the given class.
 boolean canEditCategories()
           
 boolean canPublish(Class<? extends Publication> clazz)
          Check if this group can publish object of the given class.
 boolean canRead(Category cat)
          This convenient method check if a group can read a category.
 boolean canRead(Publication pub)
          This convenient method check if a group can read a publication.
 boolean canReceiveMail(boolean checkDisable, boolean toNewsletter)
          Checks if at least one member of the group can receive a valid email.
 boolean canUpdateOther(Class<? extends Publication> clazz)
          Check if this group can update object of the given class.
 boolean canUseCategory(Category cat)
          Check if this group can use the given category.
 ControllerStatus checkDelete(Member mbr, Map context)
          Checks if the deletion can be performed
 ControllerStatus checkIntegrity()
          Checks whether or not data integrity constraints are respected.
 ControllerStatus checkMember(int op, Member mbr, Map context)
          Checks if the given member can perform the given operation.
 ControllerStatus checkWrite(int op, Member mbr, boolean checkIntegrity, Map context)
          Checks if the given write operation can be performed
 void exportXmlField(StringBuffer sb, int indentLevel)
          Fills the given StringBuffer with Xml export of fields of this data.
 void fillExportXmlFieldAttributes(StringBuffer sb)
          Fill the given string buffer with specific attributes of this data.
 Set<Group> getAncestorSet(boolean includeMyself)
          Returns the ancestors of this group.
 Set<Group> getChildrenSet()
          Return the set of groups which have this group has parent.
static Comparator getComparator(String str, boolean reverse)
          Retrieves a new Comparator given a name representing it.
 int getCookieMaxAge()
          Return the cookie maximum age value of this group (in seconds).
 int getCookieMaxAgeResolved()
          Returns the cookie max-age value to use for this group.
static String getCSVHeader(String lang)
          Returns the CSV header of this object
 String getDataName(String language)
          Return the name of this Data, every sub class Data which will be displayed to user should implements this method already.
 Set<Group> getDescendantSet()
          Returns the descendant groups of this group.
static TreeSet<Group> getGlobalGroupSet()
          Returns a set of all Groups set which are global
 String getIcon()
           
 String getIcon(String userLang, boolean imgTag)
          Return the img tag for the icon
static Comparator getLastLdapSyncComparator()
           
 Date getLastLdapSynchro()
           
 String getLdapDN()
           
 boolean getLdapSync()
           
static Comparator getMemberCountComparator()
           
 Set<Member> getMemberSet()
          Retrieves Set of members who belongs to this group (or to any child group of this group).
 String getName()
          Gets the name of this group.
static Comparator getNameComparator()
           
 Notification getNotification()
          Retrieves the notifications defined for members of this group.
 int getOrder()
          Get the order value of this group.
static Comparator getOrderComparator()
           
 HashSet<Group> getParentSet()
          Get the parent groups of this groups in a Set.
 Set<Publication> getPublicationSet()
          Retrieves a new set which contains the publications of all the members of this group.
 DataRight getRight(Class<?> clazz)
          Retrieve the DataRight associated with the specified class for this group.
 HashMap<String,DataRight> getRightFromClassMap()
          Retrieves the map associating DataRight instance to the publication type (class name) on which they must applied.
static Set<Group> getRootGroupSet(Workspace ws)
          Returns the groups without parent in the given workspace.
 int getTypeReferrerCount()
          Returns the number of type referencing this group (through "authgroups" field).
 TreeSet<Category> getUseCategorySet()
          Retrieves the Categories that members of this groups are allowed to use when publishing.
 boolean getWebdavAccess()
          Checks if member of this group are allowed to access the site using WebDAV.
 Workspace getWorkspace()
          Retrieves the Workspace defined for this group.
static Comparator getWorkspaceComparator()
           
 Set<WSTypeEntry> getWSTypeEntryReferrerSet()
          Returns a set of WSTypeEntry referencing this group.
 boolean hasChildren()
          Checks if this group has at least one children.
 boolean hasMultipleParent()
          Returns true if this group is attached to 2 or more parent groups.
 boolean isAncestor(Group group)
          Returns true if given group is an ancestor of this group or is the same object as this group.
 boolean isDescendant(Group group)
          Returns true if the given group is a descendant of this group.
 boolean isGlobalGroup()
          Checks if this group is a global group or not.
 boolean isLdapGroup()
           
 boolean isSubGroup()
          Returns true if this group belongs to at least one parent group.
 void performDelete(Member mbr, Map context)
          Performs data deletion
static void printOptionGroup(Group selectedGrp, javax.servlet.jsp.JspWriter out, String userLang)
          Print the <option> tags for a <select> tag.
static void printOptionGroup(Set<Group> selectedSet, javax.servlet.jsp.JspWriter out, String userLang)
          Print the <option> tags for a <select> tag.
static void printOptionGroup(Workspace ws, Group selectedGrp, javax.servlet.jsp.JspWriter out, String userLang)
          Print the <option> tags for a <select> tag.
static void printOptionGroup(Workspace ws, Set<Group> selectedSet, javax.servlet.jsp.JspWriter out, String userLang)
          Print the <option> tags for a <select> tag.
static void printTreeGroup(Workspace ws, String paramName, javax.servlet.jsp.JspWriter out, String userLang, JcmsJspContext context)
          Print a navigation tree for group splitted by workspaces (except if a workspace is provided).
 void refreshTypeReferrerCount()
          Refresh type referrer count.
 void removeParent(Group group)
          Removes the given group form the parent set of this group.
 void setCookieMaxAge(int cookieMaxAge)
          Set the cookie maximum age value to use for member of this group (in seconds).
 void setLastLdapSynchro(Date date)
          Set last LDAP synchronization Date (thus making it an LDAP group).
 void setLdapDN(String ldapDN)
          Set the distinguish name of this group.
 void setLdapSync(boolean ldapSync)
          Set if this group should be synchronized with ldap or not.
 void setName(String name)
          Set the name of this group.
 void setNotification(Notification notification)
          Set the notifications to use for members of this group.
 void setOrder(int order)
          Set the order of this group.
 void setParentSet(HashSet<Group> parentSet)
          Set the parent groups of this group.
 void setRightFromClassMap(HashMap<String,DataRight> rightFromClassMap)
          Set the map associating DataRight instance to the publication type (class name) on which they must be applied.
 void setUseCategorySet(TreeSet<Category> useCategorySet)
          Set the Categories that members of this groups are allowed to use when publishing.
 void setWebdavAccess(boolean webdavAccess)
          Set the authorization for member of this group to access the site using WebDAV.
 void setWorkspace(Workspace workspace)
          Sets the Workspace of this group.
 String toCSV(String lang)
          Returns a CSV view of this object
 String toString()
           
 void updateMemberSet(Member mbr, boolean add)
          Update the memberSet index.
 
Methods inherited from class com.jalios.jcms.Data
checkCreate, checkCreate, checkDelete, checkLock, checkUpdate, checkUpdate, exportXml, exportXml, exportXml, exportXmlFiles, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthorComparator, getAuthorId, getAuthorSelector, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCdateComparator, getCdateSelector, getDataImage, getDataImage, getDataImage, getDataNameComparator, getDate, getDate, getDateSelector, getDeletableSelector, getDisplayUrl, getDoubleFieldValue, getExportXmlDataValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getIdComparator, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockMember, getLongFieldValue, getMdateComparator, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpDelegate, getRowId, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, hashCode, importXml, importXmlFieldsWithReferences, importXmlFiles, importXmlReferences, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, lock, markNewImport, performAfterWrite, performBeforeWrite, performCreate, performCreate, performDelete, performUpdate, performUpdate, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorId, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraInfo, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setMdate, setOpAuthor, setOpDelegate, setRowId, toFullString, unlock, unlock, unmarkNewImport, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
 
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, clone, compareTo, equals, getAttribute, getAttributes, getCdate, getDdate, getId, getMdate, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setStore, toXml
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

name

protected String name

order

protected int order

rightFromClassMap

protected HashMap<String,DataRight> rightFromClassMap

cookieMaxAge

protected int cookieMaxAge

useCategorySet

protected TreeSet<Category> useCategorySet

workspace

protected Workspace workspace

notification

protected Notification notification

webdavAccess

protected boolean webdavAccess

parentSet

protected HashSet<Group> parentSet

ldapDN

protected String ldapDN

ldapSync

protected boolean ldapSync

lastLdapSynchro

protected Date lastLdapSynchro

cookieMaxAgeResolved

protected transient int cookieMaxAgeResolved

typeReferrerCount

protected transient int typeReferrerCount

typeReferrer

protected transient String typeReferrer
Constructor Detail

Group

public Group()

Group

public Group(Group other)
Method Detail

canRead

public boolean canRead(Category cat)
This convenient method check if a group can read a category.

Parameters:
cat - the category
Returns:
true if this group can read the category
Since:
jcms-4.1
See Also:
Publication.canBeReadBy(com.jalios.jcms.Group)

canRead

public boolean canRead(Publication pub)
This convenient method check if a group can read a publication.

Parameters:
pub - the publication
Returns:
true if this group can read the publication
Since:
jcms-2.1
See Also:
Publication.canBeReadBy(com.jalios.jcms.Group)

canEditCategories

public boolean canEditCategories()

getRight

public DataRight getRight(Class<?> clazz)
Retrieve the DataRight associated with the specified class for this group.

Parameters:
clazz - the publication type of which to find the DataRight
Returns:
the DataRight associated with the given class or null if no right has been specified.

toString

public String toString()
Overrides:
toString in class Data

getCookieMaxAgeResolved

public int getCookieMaxAgeResolved()
Returns the cookie max-age value to use for this group.
I.E. if cookieMaxAge value of this group has not been defined (== 0) then the value of the "cookie.max-age" property is returned, otherwise the cookieMaxAge value of this group is returned.

Returns:
the cookie max-age value to use for this group in seconds.
Since:
jcms-5.0.0

toCSV

public String toCSV(String lang)
Returns a CSV view of this object

Overrides:
toCSV in class Data
Parameters:
lang - the output language
Returns:
a CSV view of this object
Since:
jcms-5.0.0

getCSVHeader

public static String getCSVHeader(String lang)
Returns the CSV header of this object

Parameters:
lang - the output language
Returns:
the CSV header of this object
Since:
jcms-5.0.0

fillExportXmlFieldAttributes

public void fillExportXmlFieldAttributes(StringBuffer sb)
Fill the given string buffer with specific attributes of this data.

Overrides:
fillExportXmlFieldAttributes in class Data
Parameters:
sb - the StringBuffer
Since:
jcms-5.7.1
See Also:
Data.fillExportXmlFieldAttributes(StringBuffer)

exportXmlField

public void exportXmlField(StringBuffer sb,
                           int indentLevel)
Description copied from class: Data
Fills the given StringBuffer with Xml export of fields of this data.

Overrides:
exportXmlField in class Data
Parameters:
sb - the StringBuffer
indentLevel - the indent level

canPublish

public boolean canPublish(Class<? extends Publication> clazz)
Check if this group can publish object of the given class.

Parameters:
clazz - the class
Returns:
true if this group can publish object of the given class.
Since:
jcms-3.0

canUpdateOther

public boolean canUpdateOther(Class<? extends Publication> clazz)
Check if this group can update object of the given class.

Parameters:
clazz - the class
Returns:
true if this group can update object of the given class.
Since:
jcms-3.0

canDeleteOther

public boolean canDeleteOther(Class<? extends Publication> clazz)
Check if this group can delete object of the given class.

Parameters:
clazz - the class
Returns:
true if this group can delete object of the given class.
Since:
jcms-3.0

canUseCategory

public boolean canUseCategory(Category cat)
Check if this group can use the given category.

Parameters:
cat - the category to check
Returns:
true if this group can use the given category.
Since:
jcms-4.0

checkWrite

public ControllerStatus checkWrite(int op,
                                   Member mbr,
                                   boolean checkIntegrity,
                                   Map context)
Checks if the given write operation can be performed

Overrides:
checkWrite in class Data
Parameters:
op - the operation (OP_CREATE, OP_UPDATE, ...)
mbr - the member which requests the write operation
checkIntegrity - if true, requires the constraints integrity to be checked
context - a map which contains context parameters (may be null)
Returns:
a ControllerStatus
Since:
jcms-5.7.3

belongsToRole

public WKRole belongsToRole()
Retrieve the first WKRole instance this groups belongs to.

Returns:
the first WKRole the member belongs to, or null if no WKRole is associated with this group.
Since:
jcms-4.1

belongsToRole

public boolean belongsToRole(WKRole role)
Checks if this group is defined in the specified WKRole.

Parameters:
role - a WKRole (can be null)
Returns:
true if member belongs to the WKRole, false otherwise and when specified role is null
Since:
jcms-4.1

canReceiveMail

public boolean canReceiveMail(boolean checkDisable,
                              boolean toNewsletter)
Checks if at least one member of the group can receive a valid email.

Parameters:
checkDisable - check the disable account property
toNewsletter - check the newsletter property
Returns:
true if one member's email is valid
Since:
jcms-5.0.0

isGlobalGroup

public boolean isGlobalGroup()
Checks if this group is a global group or not.

Returns:
true if this is global group (workspace == null), false otherwise
Since:
jcms-5.5.0

getChildrenSet

public Set<Group> getChildrenSet()
Return the set of groups which have this group has parent.

Returns:
a set of Group, never return null.
Since:
jcms-5.6.0

hasChildren

public boolean hasChildren()
Checks if this group has at least one children.

Returns:
true if this group has at least one children.
Since:
jcms-5.6.0

isSubGroup

public boolean isSubGroup()
Returns true if this group belongs to at least one parent group.

Returns:
true if this group belongs to at least one parent group.
Since:
jcms-5.6.0

hasMultipleParent

public boolean hasMultipleParent()
Returns true if this group is attached to 2 or more parent groups.

Returns:
true if this group is attached to 2 or more parent groups.
Since:
jcms-5.6.0

addParent

public void addParent(Group group)
Adds the given group to the parent set of this group.

Parameters:
group - to be added.
Since:
jcms-5.6.0

removeParent

public void removeParent(Group group)
Removes the given group form the parent set of this group.

Parameters:
group - to be removed.
Since:
jcms-5.6.0

isDescendant

public boolean isDescendant(Group group)
Returns true if the given group is a descendant of this group.

Parameters:
group -
Returns:
true if the given group is a descendant of this group.
Since:
jcms-5.6.0

getDescendantSet

public Set<Group> getDescendantSet()
Returns the descendant groups of this group.

Returns:
the descendant groups of this group.
Since:
jcms-5.6.0

isAncestor

public boolean isAncestor(Group group)
Returns true if given group is an ancestor of this group or is the same object as this group.

Parameters:
group - the group to be checked.
Returns:
true if given group is an ancestor of this group or is the same object as this group.
Since:
jcms-5.6.0
See Also:
getAncestorSet(boolean)

getAncestorSet

public Set<Group> getAncestorSet(boolean includeMyself)
Returns the ancestors of this group.

Parameters:
includeMyself - if true, the ancestor set contains this group.
Returns:
the ancestors of this group.
Since:
jcms-5.6.0

getIcon

public String getIcon()
Returns:
String the imgage path for the icon
Since:
jcms-5.0.0

getIcon

public String getIcon(String userLang,
                      boolean imgTag)
Return the img tag for the icon

Parameters:
userLang - the icon language
imgTag - boolean indicate to return an <img> tag
Returns:
the img tag for the icon
Since:
jcms-5.0.0

getDataName

public String getDataName(String language)
Description copied from class: Data
Return the name of this Data, every sub class Data which will be displayed to user should implements this method already.
Can be seen as a smart multi-language toString(), but never returning null.
Default behaviour is to return toFullString() of Data or empty string if toFullString is null.

Overrides:
getDataName in class Data
Parameters:
language - the language in which to return the name if multilang available for the data.
Returns:
name of Group or empty String if not specified.
Since:
jcms-5.1
See Also:
getName(), Data.getDataName(String)

getName

public String getName()
Gets the name of this group.

Returns:
the group's name or an empty string if the name has not been set.

setName

public void setName(String name)
Set the name of this group.

Parameters:
name - the name to use.

getOrder

public int getOrder()
Get the order value of this group.
The order value may be used to sort severals groups in a set.

Returns:
the order defined for this group.

setOrder

public void setOrder(int order)
Set the order of this group.
The order value may be used to sort severals groups in a set.

Parameters:
order - an integer.

getWebdavAccess

public boolean getWebdavAccess()
Checks if member of this group are allowed to access the site using WebDAV.

Returns:
true if WebDAV access is allowed, false otherwise.
Since:
jcms-5.5.0

setWebdavAccess

public void setWebdavAccess(boolean webdavAccess)
Set the authorization for member of this group to access the site using WebDAV.

Parameters:
webdavAccess - true to authorize WebDAV access, false otherwise.
Since:
jcms-5.5.0

getWorkspace

public Workspace getWorkspace()
Retrieves the Workspace defined for this group.

Returns:
the workspace of this group, may be null for global groups.

setWorkspace

public void setWorkspace(Workspace workspace)
Sets the Workspace of this group.

Parameters:
workspace - the Workspace to define for this group. If null, this group will be a global group.

getCookieMaxAge

public int