com.bea.wli.sb.management.importexport
Class ALSBImportOperation

java.lang.Object
  extended by com.bea.wli.sb.management.importexport.ALSBImportOperation
All Implemented Interfaces:
Serializable

public class ALSBImportOperation
extends Object
implements Serializable

Indicates how a resource should be handled by the import operation. Use ALSBJarInfo.getDefaultImportPlan() method to get the default operations. Refer to each field's description for the default values returned.

See ALSBImportPlan for more information.

See Also:
Serialized Form

Nested Class Summary
static class ALSBImportOperation.Operation
           
 
Constructor Summary
ALSBImportOperation(Ref ref, ALSBImportOperation.Operation operation, boolean preserveExistingEnvValues, boolean preserveExistingOperationalValues)
          Constructor
 
Method Summary
 ALSBImportOperation.Operation getOperation()
          returns the operation.
 Ref getRef()
          Returns the reference to the resource that is being created, updated, deleted or skipped by the import
 boolean isPreserveExistingEnvValues()
          Returns whether existing environment values will be preserved in the case of an update.
 boolean isPreserveExistingOperationalValues()
          Returns whether existing operational values will be preserved in the case of an update
 void setDelete()
          Marks the operation so that the resource is deleted.
 void setPreserveExistingEnvValues(boolean preserveExistingEnvValues)
           
 void setPreserveExistingOperationalValues(boolean preserveExistingOperationalValues)
           
 void setSkip()
          Changes the existing operation to a skip so that the operation is not performed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ALSBImportOperation

public ALSBImportOperation(Ref ref,
                           ALSBImportOperation.Operation operation,
                           boolean preserveExistingEnvValues,
                           boolean preserveExistingOperationalValues)
Constructor

Parameters:
ref - reference to the resource that is being considered by the import process.
operation - The operation that will be performed on the resource. The operation can be ALSBImportOperation.Operation.Skip indicating that the resource will not be affected by import. A value of ALSBImportOperation.Operation.Delete causes the existing resource will be deleted. This operation is only meaningful if a resource exists in the domain but not in the jar file. Using a delete operation in any other scenario will cause an exception during the import. The users of this constructor can use ALSBImportOperation.Operation.Create and ALSBImportOperation.Operation.Update interchangeably to indicate that the resource will be imported from the jar file. The underlying system will correctly perform either Create or Update depending on whether the resource exists in the domain or not. In other words the users need not distinguish between the case in which a resource already exists in the domain, and not exist in the domain.
preserveExistingEnvValues - whether to preserve the existing environment values of the existing resource, if any. This flag is only meaningful if the import operation is going to cause an update of a resource. If this flag is set to true, the existing resource will be update with the resource in the jar file, except that it will preserve the environment specific values.
preserveExistingOperationalValues - whether to preserve the existing operational values of the existing resource, if any. This flag is only meaningful if the import operation is going to cause an update of a resource. If this flag is set to true, the existing resource will be update with the resource in the jar file, except that it will preserve the operational values.
Method Detail

getRef

public Ref getRef()
Returns the reference to the resource that is being created, updated, deleted or skipped by the import

Returns:

isPreserveExistingEnvValues

public boolean isPreserveExistingEnvValues()
Returns whether existing environment values will be preserved in the case of an update.


setPreserveExistingEnvValues

public void setPreserveExistingEnvValues(boolean preserveExistingEnvValues)

isPreserveExistingOperationalValues

public boolean isPreserveExistingOperationalValues()
Returns whether existing operational values will be preserved in the case of an update

Returns:

setPreserveExistingOperationalValues

public void setPreserveExistingOperationalValues(boolean preserveExistingOperationalValues)

getOperation

public ALSBImportOperation.Operation getOperation()
returns the operation.

Returns:

setSkip

public void setSkip()
Changes the existing operation to a skip so that the operation is not performed. All operations (Create, update and delete) can be skipped.


setDelete

public void setDelete()
Marks the operation so that the resource is deleted. This operation is only meaningful if the operation is a Skip operation. Otherwise it fails.