📄 alsbimportplan.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_11) on Fri Jan 25 02:21:56 EST 2008 -->
<TITLE>
ALSBImportPlan
</TITLE>
<META NAME="keywords" CONTENT="com.bea.wli.sb.management.importexport.ALSBImportPlan class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ALSBImportPlan";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html" title="enum in com.bea.wli.sb.management.importexport"><B>PREV CLASS</B></A>
<A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBJarInfo.html" title="class in com.bea.wli.sb.management.importexport"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?com/bea/wli/sb/management/importexport/ALSBImportPlan.html" target="_top"><B>FRAMES</B></A>
<A HREF="ALSBImportPlan.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.bea.wli.sb.management.importexport</FONT>
<BR>
Class ALSBImportPlan</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.bea.wli.sb.management.importexport.ALSBImportPlan</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>ALSBImportPlan</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL>
</PRE>
<P>
This class is used to control, define and fine tune the behavior of the import process. The import plan is passed to the <A HREF="../../../../../../com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html#importUploaded(com.bea.wli.sb.management.importexport.ALSBImportPlan)"><CODE>ALSBConfigurationMBean.importUploaded(ALSBImportPlan)</CODE></A> and executed by that method. An import plan contains a set of <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBImportOperation</CODE></A> objects for resources that are affected by the import plan. <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBImportOperation</CODE></A> contains the following information: <ul> <li> Whether the resource should be created, updated, deleted or ignored (skipped) as part of the import <li> whether environment values in a resource should be preserved even though other fields may be affected by the import <li> whether operational values in a resource should be preserved even though other fields may be affected by the import </ul> An import plan can be obtained/created in two ways: <ul> <li> Via the <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBJarInfo.html#getDefaultImportPlan()"><CODE>ALSBJarInfo.getDefaultImportPlan()</CODE></A> method : Clients can first obtain the <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBJarInfo.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBJarInfo</CODE></A> object by calling <A HREF="../../../../../../com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html#getImportJarInfo()"><CODE>ALSBConfigurationMBean.getImportJarInfo()</CODE></A> . Then call the relevant method to obtain the default import plan. The client can then further teak or totally alter the default plan and pass it to the import method. The contents of the default plan is described below. <li> By creating a brand new import plan using the constructor: In this method, the client simply creates an empty plan and adds information regarding individual resources one by one. See <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBImportOperation</CODE></A> for more information. The import plan need not contain an import operation for each and every resource in the jar file. Resource that need not be imported at all can be left out from the plan. </ul> <b> The Default Import Plan </b> The <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBJarInfo.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBJarInfo</CODE></A> 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. <ul> <li> If the config jar file was exported at the resource level: <ul> <li> if the resource is in the jar file and in the domain: <b>Update</b> <li> if the resource is in the jar file but not in the domain: <b>Create</b> <li> if the resource is not in the jar file but in the domain: <b>Skip</b> (No-op) </ul> <li> if the config jar file was exported at the project level (this behavior affects only the resources in the projects that are found in the jar file.) <ul> <li> if the resource is in the jar file and in the domain: <b>Update</b> <li> if the resource is in the jar file but not in the domain: <b>Create</b> <li> if the resource is not in the jar file but in the domain: <b>Delete</b> </ul> </ul> 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. <p> 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. <p> For more information about individual resource operations see <A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.html" title="class in com.bea.wli.sb.management.importexport"><CODE>ALSBImportOperation</CODE></A>
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../serialized-form.html#com.bea.wli.sb.management.importexport.ALSBImportPlan">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportPlan.html#ALSBImportPlan()">ALSBImportPlan</A></B>()</CODE>
<BR>
Creates a blank import plan</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportPlan.html#ALSBImportPlan(java.util.Map, java.lang.String)">ALSBImportPlan</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A><<A HREF="../../../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A>,<A HREF="../../../../../../com/bea/wli/sb/management/importexport/ALSBImportOperation.html" title="class in com.bea.wli.sb.management.importexport">ALSBImportOperation</A>> operations,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> passphrase)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -