org.olat.group.ui
Class BusinessGroupFormController

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.components.form.flexible.impl.FormBasicController
              extended by org.olat.group.ui.BusinessGroupFormController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class BusinessGroupFormController
extends FormBasicController

Implements a Business group creation dialog using FlexiForms.

Author:
twuersch

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Constructor Summary
BusinessGroupFormController(UserRequest ureq, WindowControl wControl, BusinessGroup businessGroup, boolean minMaxEnabled)
          Creates this controller.
BusinessGroupFormController(UserRequest ureq, WindowControl wControl, BusinessGroup businessGroup, boolean minMaxEnabled, boolean bulkMode)
           
 
Method Summary
 BusinessGroup getBusinessGroup()
           
 java.lang.String getGroupDescription()
           
 java.lang.Integer getGroupMax()
           
 java.lang.Integer getGroupMin()
           
 java.lang.String getGroupName()
           
 java.util.Set<java.lang.String> getGroupNames()
           
 java.lang.Boolean isAutoCloseRanksEnabled()
           
 java.lang.Boolean isWaitingListEnabled()
           
 void setEnableAutoCloseRanks(java.lang.Boolean enableAutoCloseRanks)
           
 void setEnableWaitingList(java.lang.Boolean enableWaitingList)
           
 void setGroupName(java.lang.String name)
           
 void setGroupNameExistsError(java.util.Set<java.lang.String> nonexistingnames)
           
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
dispose, event
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessGroupFormController

public BusinessGroupFormController(UserRequest ureq,
                                   WindowControl wControl,
                                   BusinessGroup businessGroup,
                                   boolean minMaxEnabled)
Creates this controller.

Parameters:
ureq - The user request.
wControl - The window control.
businessGroup - The group object which will be modified by this dialog.
minMaxEnabled - Decides whether to limit the number of people that can enrol to a group or not

BusinessGroupFormController

public BusinessGroupFormController(UserRequest ureq,
                                   WindowControl wControl,
                                   BusinessGroup businessGroup,
                                   boolean minMaxEnabled,
                                   boolean bulkMode)
Parameters:
ureq -
wControl -
businessGroup - The group object which will be modified by this dialog.
minMaxEnabled - Decides whether to limit the number of people that can enrol to a group or not
bulkMode - when passing group names as CSV you have to set this to true and all groups will be created at once
Method Detail

setGroupName

public void setGroupName(java.lang.String name)
Parameters:
name -

getGroupDescription

public java.lang.String getGroupDescription()
Returns:

getGroupNames

public java.util.Set<java.lang.String> getGroupNames()
Returns:

getGroupName

public java.lang.String getGroupName()
Returns:

getGroupMax

public java.lang.Integer getGroupMax()
Returns:

getGroupMin

public java.lang.Integer getGroupMin()
Returns:

setGroupNameExistsError

public void setGroupNameExistsError(java.util.Set<java.lang.String> nonexistingnames)
Parameters:
nonexistingnames -

isAutoCloseRanksEnabled

public java.lang.Boolean isAutoCloseRanksEnabled()
Returns:

setEnableAutoCloseRanks

public void setEnableAutoCloseRanks(java.lang.Boolean enableAutoCloseRanks)
Parameters:
enableAutoCloseRanks -

isWaitingListEnabled

public java.lang.Boolean isWaitingListEnabled()
Returns:

setEnableWaitingList

public void setEnableWaitingList(java.lang.Boolean enableWaitingList)
Parameters:
enableWaitingList -

getBusinessGroup

public BusinessGroup getBusinessGroup()
Returns: