wt.change2
Class SynchronizedDomainChooseFolderDelegate

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

public class SynchronizedDomainChooseFolderDelegate
extends Object
implements ChooseFolderDelegate, Externalizable

This delegate has similar semantics to those of DefaultChooseFolderDelegate, but forces the administrative domain of each non-foldered change object to be synchronized with that of its associated foldered change object.

Supported API: true

Extendable: true

See Also:
DefaultChooseFolderDelegate, Serialized Form

Method Summary
 CabinetMember assignLocation(CabinetMember target, CabinetMember source)
          Assign the target CabinetMember object to the same Cabinet as the source CabinetMember object; force the domain of the target to match that of the source; set inheritedDomain=false for the target.
 CabinetMember assignLocation(CabinetMember target, Foldered source)
          Assign the target CabinetMember object to the same Cabinet as the source Foldered object; force the domain of the target to match that of the source; set inheritedDomain=false for the target.
 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 the same Folder as the source Foldered object.
 CabinetMember changeFolder(CabinetMember target, CabinetMember source)
          Change the target CabinetMember object to the same Cabinet as the source CabinetMember object, and explicitly change the domain, if needed.
 CabinetMember changeFolder(CabinetMember target, Foldered source)
          Change the target CabinetMember object to the same Cabinet as the source Foldered object; force the domain of the target to match that of the source.
 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 the same Folder as 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 Cabinet as the source CabinetMember object; force the domain of the target to match that of the source; set inheritedDomain=false for the target.

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 the same Folder as 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 the same Cabinet as the source Foldered object; force the domain of the target to match that of the source; set inheritedDomain=false for the target.

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 Cabinet as the source CabinetMember object, and explicitly change the domain, if needed.

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 the same Folder as 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 the same Cabinet as the source Foldered object; force the domain of the target to match that of the source.

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