org.olat.group
Class BusinessGroupArchiver

java.lang.Object
  extended by org.olat.group.BusinessGroupArchiver

public class BusinessGroupArchiver
extends java.lang.Object

Author:
Christian Guretzki

Constructor Summary
BusinessGroupArchiver()
          constructs an unitialised BusinessGroup, use setXXX for setting attributes
 
Method Summary
 java.io.File archiveAreaMembers(BGContext context, java.util.List<java.lang.String> columnList, java.util.List<BGArea> areaList, java.lang.String archiveType, UserRequest ureq)
          Creates an temp CSV (comma separated) file containing the members info (namely with the columns specified in "columnList"), the area info (for the filtered "areaList"), and separated in role sections: owners, participants and waiting.
 void archiveBGContext(BGContext context, java.io.File archiveFile)
           
 void archiveGroup(BusinessGroup businessGroup, java.io.File archiveFile)
           
 java.io.File archiveGroupMembers(BGContext context, java.util.List<java.lang.String> columnList, java.util.List<BusinessGroup> groupList, java.lang.String archiveType, UserRequest ureq)
          Creates an temp CSV (comma separated) file containing the members info (namely with the columns specified in "columnList"), the groups info (for the filtered "groupList"), and separated in role sections: owners, participants and waiting.
static BusinessGroupArchiver getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessGroupArchiver

public BusinessGroupArchiver()
constructs an unitialised BusinessGroup, use setXXX for setting attributes

Method Detail

getInstance

public static BusinessGroupArchiver getInstance()

archiveGroup

public void archiveGroup(BusinessGroup businessGroup,
                         java.io.File archiveFile)

archiveBGContext

public void archiveBGContext(BGContext context,
                             java.io.File archiveFile)

archiveAreaMembers

public java.io.File archiveAreaMembers(BGContext context,
                                       java.util.List<java.lang.String> columnList,
                                       java.util.List<BGArea> areaList,
                                       java.lang.String archiveType,
                                       UserRequest ureq)
Creates an temp CSV (comma separated) file containing the members info (namely with the columns specified in "columnList"), the area info (for the filtered "areaList"), and separated in role sections: owners, participants and waiting.

Parameters:
context -
columnList -
areaList -
archiveType -
userLocale -
Returns:
the output file which could be an CSV or a zip file depending on the input archiveType.
See Also:
BGArea

archiveGroupMembers

public java.io.File archiveGroupMembers(BGContext context,
                                        java.util.List<java.lang.String> columnList,
                                        java.util.List<BusinessGroup> groupList,
                                        java.lang.String archiveType,
                                        UserRequest ureq)
Creates an temp CSV (comma separated) file containing the members info (namely with the columns specified in "columnList"), the groups info (for the filtered "groupList"), and separated in role sections: owners, participants and waiting.

Parameters:
context -
columnList -
groupList -
archiveType -
userLocale -
Returns:
the output file which could be an CSV or a zip file depending on the input archiveType.
See Also:
BGContext, BusinessGroup