{
boolean success = true;
String moveFragmentId = fragment.getId();
boolean addFragment = (placeInLayoutFragment != null);
Coordinate returnCoordinate = null;
float oldX = 0f, oldY = 0f, oldZ = 0f, oldWidth = 0f, oldHeight = 0f;
float x = -1f, y = -1f, z = -1f, width = -1f, height = -1f;
boolean absHeightChanged = false;
// desktop extended
String posExtended = getActionParameter( requestContext, DESKTOP_EXTENDED );
if ( posExtended != null )
{
Map fragmentProperties = fragment.getProperties();
if ( fragmentProperties == null )
{
success = false;
resultMap.put(REASON, "Failed to acquire fragment properties map for portlet id: " + moveFragmentId );
return success;
}
String oldDeskExt = (String)fragmentProperties.get( DESKTOP_EXTENDED );
resultMap.put( OLD_DESKTOP_EXTENDED, ( (oldDeskExt != null) ? oldDeskExt : "" ) );
fragmentProperties.put( DESKTOP_EXTENDED, posExtended );
}
// only required for moveabs
if ( iMoveType == ABS )
{
Coordinate newCoordinate = getCoordinateFromParams( requestContext );
returnCoordinate = placement.moveAbsolute( fragment, newCoordinate, addFragment );
String sHeight = getActionParameter( requestContext, HEIGHT );
if ( sHeight != null && sHeight.length() > 0 )
{
oldHeight = fragment.getLayoutHeight();