Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


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

java.lang.Object
  extended by com.bea.wli.sb.management.importexport.ALSBImportPlan

All Implemented Interfaces:
java.io.Serializable

public class ALSBImportPlan
extends java.lang.Object
implements java.io.Serializable

This class is used to control, define and fine tune the behavior of the import process. The import plan is passed to the ALSBConfigurationMBean.importUploaded(ALSBImportPlan) and executed by that method. An import plan contains a set of ALSBImportOperation objects for resources that are affected by the import plan. ALSBImportOperation contains the following information:

An import plan can be obtained/created in two ways:

The Default Import Plan The ALSBJarInfo object contains the default import plan. The default import plan is primarily affected by whether the jar file was exported at the project level or resource level. Based on this, and whether a resource exists in the jar file, and in the domain, the following default import operation is created for each resource.

As the above table indicates the main difference is in how an existing resource is affected when that resource does not exist in the jar file. If the jar file was exported at the project level, resources of that project that exist in the domain but not in the jar file are deleted. Therefore, a project level export/import can be used to completely overlay projects.

The import operations in the default plan preserve environment values and operational settings by default. The default import plan can further be modified to skip operations, or change the environment value / operational value preservation behavior individually.

For more information about individual resource operations see ALSBImportOperation

See Also:
Serialized Form

Constructor Summary
ALSBImportPlan()
          Creates a blank import plan
ALSBImportPlan(java.util.Map<Ref,ALSBImportOperation> operations, java.lang.String passphrase)
           

 

Method Summary
 void addOperation(ALSBImportOperation operation)
          Adds an operation for the existing plan.
 java.util.Map<Ref,ALSBImportOperation> getOperations()
          Returns import operations that will be performed by the import plan.
 java.lang.String getPassphrase()
           
 void removeOperation(Ref ref)
          Removes the import operation for the given reference.
 void setPassphrase(java.lang.String passphrase)
          Sets the passphrase
 void setPreserveExistingAccessControlPolicies(boolean preserveExistingAccessControlPolicies)
          Sets the value of preserveExistingAccessControlPolicies flag across all import operations.
 void setPreserveExistingCredentials(boolean preserveExistingCredentials)
          Sets the value of preserveExistingCredentials flag across all import operations.
 void setPreserveExistingEnvValues(boolean preserveExistingEnvValues)
          Sets the value of preserveExistingEnvValues flag across all import operations.
 void setPreserveExistingOperationalValues(boolean preserveExistingOperationalValues)
          Sets the value of preserveExistingOperationValues flag across all import operations.
 void setPreserveExistingSecurityAndPolicyConfig(boolean preserveExistingSecurityAndPolicyConfig)
          Sets the value of preserveExistingSecurityAndPolicyConfig flag across all import operations.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ALSBImportPlan

public ALSBImportPlan()
Creates a blank import plan

ALSBImportPlan

public ALSBImportPlan(java.util.Map<Ref,ALSBImportOperation> operations,
                      java.lang.String passphrase)
Parameters:
operations - a map of operations for all resources. One ALSBImportOperation per resource need to be passed.ALSBImportOperation
passphrase - the pass phrase to use for decrypting resources that have been encrypted. Null value can be given if the jar file is known to not have been encrypted.

Method Detail

getPassphrase

public java.lang.String getPassphrase()

setPassphrase

public void setPassphrase(java.lang.String passphrase)
Sets the passphrase
Parameters:
passphrase -

addOperation

public void addOperation(ALSBImportOperation operation)
Adds an operation for the existing plan. Overwrites the operation of the operation already exists for this resource
Parameters:
operation - that needs to be added

removeOperation

public void removeOperation(Ref ref)
Removes the import operation for the given reference. Alternatively the operation for this ref can be marked as skip using the ALSBImportOperation.setSkip() method.
Parameters:
ref -

getOperations

public java.util.Map<Ref,ALSBImportOperation> getOperations()
Returns import operations that will be performed by the import plan.

setPreserveExistingEnvValues

public void setPreserveExistingEnvValues(boolean preserveExistingEnvValues)
Sets the value of preserveExistingEnvValues flag across all import operations. Calling this method will overwrite the value of the the same flag for all import operations. See ALSBImportOperation.setPreserveExistingEnvValues(boolean) method for setting this flag on a per-resource basis.
Parameters:
preserveExistingEnvValues -

setPreserveExistingOperationalValues

public void setPreserveExistingOperationalValues(boolean preserveExistingOperationalValues)
Sets the value of preserveExistingOperationValues flag across all import operations. Calling this method will overwrite the value of the the same flag for all import operations. See ALSBImportOperation.setPreserveExistingOperationalValues(boolean) method for setting this flag on a per-resource basis.
Parameters:
preserveExistingOperationalValues -

setPreserveExistingSecurityAndPolicyConfig

public void setPreserveExistingSecurityAndPolicyConfig(boolean preserveExistingSecurityAndPolicyConfig)
Sets the value of preserveExistingSecurityAndPolicyConfig flag across all import operations. Calling this method will overwrite the value of the the same flag for all import operations. See ALSBImportOperation.setPreserveExistingSecurityAndPolicyConfig(boolean) method for setting this flag on a per-resource basis.
Parameters:
preserveExistingSecurityAndPolicyConfig -

setPreserveExistingCredentials

public void setPreserveExistingCredentials(boolean preserveExistingCredentials)
Sets the value of preserveExistingCredentials flag across all import operations. Calling this method will overwrite the value of the the same flag for all import operations. See ALSBImportOperation.setPreserveExistingCredentials(boolean) method for setting this flag on a per-resource basis.
Parameters:
preserveExistingCredentials -

setPreserveExistingAccessControlPolicies

public void setPreserveExistingAccessControlPolicies(boolean preserveExistingAccessControlPolicies)
Sets the value of preserveExistingAccessControlPolicies flag across all import operations. Calling this method will overwrite the value of the the same flag for all import operations. See ALSBImportOperation.setPreserveExistingAccessControlPolicies(boolean) method for setting this flag on a per-resource basis.
Parameters:
preserveExistingAccessControlPolicies -

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.