org.olat.core.commons.modules.bc.meta
Class MetaInfoFormController

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.core.commons.modules.bc.meta.MetaInfoFormController
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class MetaInfoFormController
extends FormBasicController

This is the metadata flexiform controller with or without upload capability.

Initial Date: Jun 24, 2009

Author:
gwassmann

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
MetaInfoFormController(UserRequest ureq, WindowControl control, Form parentForm)
          Use this constructor in a subform
MetaInfoFormController(UserRequest ureq, WindowControl wControl, Form parentForm, VFSItem vfsItem)
          Use this if you want to use this controller in a subform but for an already existing VFS item.
MetaInfoFormController(UserRequest ureq, WindowControl control, VFSItem item)
          Use this controller for editing meta data of an existing file.
 
Method Summary
 java.lang.String getFilename()
           
 FormItem getFormItem()
          Get the form item representing this form
 MetaInfo getMetaInfo()
           
 MetaInfo getMetaInfo(MetaInfo meta)
          Puts the metadata of this form into the existing metaInfo object and returns it.
 boolean isFileRenamed()
           
 
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

MetaInfoFormController

public MetaInfoFormController(UserRequest ureq,
                              WindowControl control,
                              VFSItem item)
Use this controller for editing meta data of an existing file.

Parameters:
ureq -
control -

MetaInfoFormController

public MetaInfoFormController(UserRequest ureq,
                              WindowControl control,
                              Form parentForm)
Use this constructor in a subform

Parameters:
ureq -
control -
uploadLimitKB -
remainingQuotaKB -

MetaInfoFormController

public MetaInfoFormController(UserRequest ureq,
                              WindowControl wControl,
                              Form parentForm,
                              VFSItem vfsItem)
Use this if you want to use this controller in a subform but for an already existing VFS item.

Parameters:
ureq - User request
wControl - Window control
parentForm - Parent form
vfsItem - VFS item for which you want to edit the metadata
Method Detail

isFileRenamed

public boolean isFileRenamed()
Returns:
true if the item has been given a new name by the user.

getFilename

public java.lang.String getFilename()
Returns:
The filename

getMetaInfo

public MetaInfo getMetaInfo()
Returns:
The updated MeatInfo object

getMetaInfo

public MetaInfo getMetaInfo(MetaInfo meta)
Puts the metadata of this form into the existing metaInfo object and returns it.

Parameters:
meta -
Returns:
The MetaInfo object with the attributes of the form

getFormItem

public FormItem getFormItem()
Get the form item representing this form

Returns: