wt.change2
Class DefaultChooseFolderDelegate

java.lang.Object
  extended by wt.change2.DefaultChooseFolderDelegate
All Implemented Interfaces:
Externalizable, Serializable, ChooseFolderDelegate

public class DefaultChooseFolderDelegate
extends Object
implements ChooseFolderDelegate, Externalizable

This delegate assigns a location to or changes the location of (Folder or Cabinet) an object to the location (Folder or Cabinet) of the other object.

Supported API: true

Extendable: true

See Also:
ChooseFolderDelegate, Serialized Form

Method Summary
 CabinetMember assignLocation(CabinetMember target, CabinetMember source)
          Assign the target CabinetMember object to the same Folder or Cabinet as the source CabinetMember object, as appropriate.
 CabinetMember assignLocation(CabinetMember target, Foldered source)
          Assign the target CabinetMember object to a Cabinet using the source Foldered object.
 Foldered assignLocation(Foldered target)
          Assign the target Foldered object to a Folder using the property file resource entry:
 CabinetMember assignLocation(Foldered target, CabinetMember source)
          Assign the target Foldered object to a Folder using the source CabinetMember object.
 Foldered assignLocation(Foldered target, Foldered source)
          Assign the target Foldered object to a Folder using the source Foldered object.
 CabinetMember changeFolder(CabinetMember target, CabinetMember source)
          Change the target CabinetMember object to the same Folder or Cabinet as the source CabinetMember object, as appropriate.
 CabinetMember changeFolder(CabinetMember target, Foldered source)
          Change the target CabinetMember object to a Cabinet using the source Foldered object.
 Foldered changeFolder(Foldered target, CabinetMember source)
          Change the target Foldered object to a Folder using the source CabinetMember object.
 Foldered changeFolder(Foldered target, Foldered source)
          Change the target Foldered object to a Folder using the source Foldered object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assignLocation

public CabinetMember assignLocation(CabinetMember target,
                                    CabinetMember source)
                             throws WTException,
                                    ChangeException2
Assign the target CabinetMember object to the same Folder or Cabinet as the source CabinetMember object, as appropriate. Assign the target to the same Folder as the source if both are Foldered; assign it to the same Cabinet as the source if the target is a CabinetMember and the source is either a CabinetMember or Foldered; throw an exception otherwise.

Supported API: true

Specified by:
assignLocation in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
CabinetMember
Throws:
WTException
ChangeException2

assignLocation

public Foldered assignLocation(Foldered target,
                               Foldered source)
                        throws WTException,
                               ChangeException2
Assign the target Foldered object to a Folder using the source Foldered object.

Supported API: true

Specified by:
assignLocation in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
Foldered
Throws:
WTException
ChangeException2

assignLocation

public CabinetMember assignLocation(CabinetMember target,
                                    Foldered source)
                             throws WTException,
                                    ChangeException2
Assign the target CabinetMember object to a Cabinet using the source Foldered object.

Supported API: true

Specified by:
assignLocation in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
CabinetMember
Throws:
WTException
ChangeException2

assignLocation

public CabinetMember assignLocation(Foldered target,
                                    CabinetMember source)
                             throws WTException,
                                    ChangeException2
Assign the target Foldered object to a Folder using the source CabinetMember object. This method is not implemented, so it throws a ChangeException2 all the time; it is intended that customizers may want to use this signature.

Supported API: true

Specified by:
assignLocation in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
CabinetMember
Throws:
WTException
ChangeException2

assignLocation

public Foldered assignLocation(Foldered target)
                        throws WTException,
                               ChangeException2
Assign the target Foldered object to a Folder using the property file resource entry:
wt.services/rsc/default/FolderedChangeItemLocation


Supported API: true

Specified by:
assignLocation in interface ChooseFolderDelegate
Parameters:
target -
Returns:
Foldered
Throws:
WTException
ChangeException2

changeFolder

public CabinetMember changeFolder(CabinetMember target,
                                  CabinetMember source)
                           throws WTException,
                                  ChangeException2
Change the target CabinetMember object to the same Folder or Cabinet as the source CabinetMember object, as appropriate. Assign the target to the same Folder as the source if both are Foldered; assign it to the same Cabinet as the source if the target is a CabinetMember and the source is either a CabinetMember or Foldered; throw an exception otherwise.

Supported API: true

Specified by:
changeFolder in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
CabinetMember
Throws:
WTException
ChangeException2

changeFolder

public Foldered changeFolder(Foldered target,
                             Foldered source)
                      throws WTException,
                             ChangeException2
Change the target Foldered object to a Folder using the source Foldered object.

Supported API: true

Specified by:
changeFolder in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
Foldered
Throws:
WTException
ChangeException2

changeFolder

public CabinetMember changeFolder(CabinetMember target,
                                  Foldered source)
                           throws WTException,
                                  ChangeException2
Change the target CabinetMember object to a Cabinet using the source Foldered object.

Supported API: true

Specified by:
changeFolder in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
CabinetMember
Throws:
WTException
ChangeException2

changeFolder

public Foldered changeFolder(Foldered target,
                             CabinetMember source)
                      throws WTException,
                             ChangeException2
Change the target Foldered object to a Folder using the source CabinetMember object. This method is not implemented, so it throws a ChangeException2 all the time; it is intended that customizers may want to use this signature.

Supported API: true

Specified by:
changeFolder in interface ChooseFolderDelegate
Parameters:
target -
source -
Returns:
Foldered
Throws:
WTException
ChangeException2