Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.management.configuration
Interface AppDeploymentMBean

All Superinterfaces:
BasicDeploymentMBean, ConfigurationMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, TargetInfoMBean, WebLogicMBean
All Known Subinterfaces:
LibraryMBean

public interface AppDeploymentMBean
extends BasicDeploymentMBean

This MBean is used to configure all physical package types which can be deployed on a WebLogic domain, for instance, EAR files and standalone Java EE and non-Java EE modules.

Access limited to the following security roles:
Deployer

Field Summary
static String DEFAULT_STAGE
           
static String EXTERNAL_STAGE
          Indicates that the files will be expected in the target server's staging directory, but the server will not copy them there.
static String NO_STAGE
          Specifies that the deployment will not be copied to target servers.
static String STAGE
          Specifies that WebLogic Server will copy the application to the target server's staging directory.
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String createPlan()
          Create a deployment plan in a default directory
 String createPlan(String planPath)
          Create a deployment plan in the specified directory.
 String getAbsoluteInstallDir()
          The fully resolved location of this application's installation root directory on the Administration Server.
 String getAbsolutePlanDir()
          The fully resolved location of this application's deployment plan directory on the Administration Server.
 String getAbsolutePlanPath()
          The fully resolved location of this application's deployment plan on the Administration Server.
 String getAbsoluteSourcePath()
          The fully resolved location of this application's source files on the Administration Server.
 String getApplicationIdentifier()
          The Application Identifier of the application version uniquely identifies the application version across all versions of all applications.
 String getApplicationName()
          The name of the application.
 byte[] getDeploymentPlan()
          The contents of this application's deployment plan, returned as a byte[] containing the XML.
 byte[] getDeploymentPlanExternalDescriptors()
          A zip file containing the external descriptors referenced in the deployment plan.
 String getInstallDir()
          The path to the application's install-root directory, relative to the domain/config/deployments directory.
 String getPlanDir()
          The location of this application's configuration area.
 String getPlanPath()
          The path to the deployment plan document on the Administration Server.
 String getPlanStagingMode()
          Specifies whether an application's deployment plan is copied from a source on the Administration Server to the Managed Server's staging area during application preparation.
 String getSecurityDDModel()
          The security model that is used to secure a deployed module.
 String getSourcePath()
          The path to the source of the deployable unit on the Administration Server.
 String getStagingMode()
          Specifies whether a deployment's files are copied from a source on the Administration Server to the Managed Server's staging area during application preparation.
 String getVersionIdentifier()
          Uniquely identifies the application version across all versions of the same application.
 boolean isCacheInAppDirectory()
           
 boolean isValidateDDSecurityData()
          This attribute is not used in the current release.
 void setValidateDDSecurityData(boolean validate)
          Sets the value of the ValidateDDSecurityData attribute.
 
Methods inherited from interface weblogic.management.configuration.BasicDeploymentMBean
createSubDeployment, destroySubDeployment, getDeploymentOrder, getDeploymentPrincipalName, getSubDeployments, lookupSubDeployment, setDeploymentOrder, setDeploymentPrincipalName, setSourcePath
 
Methods inherited from interface weblogic.management.configuration.TargetInfoMBean
addTarget, getCompatibilityName, getName, getTargets, removeTarget, setCompatibilityName, setModuleType, setName, setTargets
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, unSet
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
 

Field Detail

DEFAULT_STAGE

static final String DEFAULT_STAGE

NO_STAGE

static final String NO_STAGE

Specifies that the deployment will not be copied to target servers.

See Also:
Constant Field Values

STAGE

static final String STAGE

Specifies that WebLogic Server will copy the application to the target server's staging directory.

See Also:
Constant Field Values

EXTERNAL_STAGE

static final String EXTERNAL_STAGE

Indicates that the files will be expected in the target server's staging directory, but the server will not copy them there. The user is responsible for distributing files.

See Also:
Constant Field Values
Method Detail

getInstallDir

String getInstallDir()

The path to the application's install-root directory, relative to the domain/config/deployments directory.

When the installation directory is specified, SourcePath, PlanDir, and PlanPath are derived from this path and need not be specified.

The default value for this is the name of the deployment.

See Also:
AppDeploymentMBean.getSourcePath(), AppDeploymentMBean.getPlanDir(), AppDeploymentMBean.getPlanPath()

getSourcePath

String getSourcePath()

The path to the source of the deployable unit on the Administration Server.

Rules:

If the source path is relative, it is resolved relative to InstallDir/app if InstallDir is not null; otherwise, it is resolved relative to the domain root.

Use AbsoluteSourcePath to get a fully resolved value.

Specified by:
getSourcePath in interface BasicDeploymentMBean
Returns:
path
See Also:
AppDeploymentMBean.getInstallDir(), AppDeploymentMBean.getAbsoluteSourcePath()

getPlanDir

String getPlanDir()

The location of this application's configuration area. This directory can contain external descriptor files as specified within the deployment plan document.

Rules:

If the plan directory is a relative path, it is resolved relative to InstallDir if InstallDir is not null; otherwise, it is resolved relative to the domain root.

Use AbsolutePlanDir to get a fully resolved value.

See Also:
AppDeploymentMBean.getInstallDir(), AppDeploymentMBean.getAbsolutePlanDir()

getPlanPath

String getPlanPath()

The path to the deployment plan document on the Administration Server.

Rules:

If the plan path is a relative path, it is resolved relative to PlanDir if PlanDir is not null; otherwise, it is resolved relative to the domain root.

Use AbsolutePlanPath to get a fully resolved value.

If there is no plan, this returns no plan specified.

See Also:
AppDeploymentMBean.getPlanDir(), AppDeploymentMBean.getAbsolutePlanPath()
Changes take effect after you redeploy the module or restart the server.

getVersionIdentifier

String getVersionIdentifier()

Uniquely identifies the application version across all versions of the same application.

If the application is not versioned, this returns null.

Returns:
The Version Identifier of the application

isValidateDDSecurityData

boolean isValidateDDSecurityData()

This attribute is not used in the current release.

Returns:
a boolean indicating the validation setting
Default Value:
false

setValidateDDSecurityData

void setValidateDDSecurityData(boolean validate)

Sets the value of the ValidateDDSecurityData attribute.

Parameters:
validate - a boolean indicating the validation setting.
See Also:
AppDeploymentMBean.isValidateDDSecurityData()

getSecurityDDModel

String getSecurityDDModel()

The security model that is used to secure a deployed module.

To set this value, you can use the weblogic.Deployer command-line tool, the Deployment Assistant in the Administration Console, the WebLogic Scripting Tool (WLST), or another JMX client.

If you deploy a module using one of the previously mentioned tools and you do not specify a security model value, the module is secured with the security realm's default model ( see RealmMBean SecurityDDModel).

If you deploy a module by modifying the domain's config.xml file and restarting the server, and if you do not specify a security model value for the module in config.xml, the module is secured with the DDOnly model, which is the default value of this AppDeploymentMBean attribute.

In summary, the order of precedence for the value of this attribute is as follows:

Returns:
the name of the deployment model
See Also:
RealmMBean.getSecurityDDModel()
Default Value:
weblogic.management.security.DeploymentModel.DD_ONLY
Initial Value:
weblogic.management.mbeans.custom.AppDeployment.getInitialSecurityDDModel(this)
Valid Values:
weblogic.management.security.DeploymentModel.DD_ONLY, weblogic.management.security.DeploymentModel.CUSTOM_ROLES, weblogic.management.security.DeploymentModel.CUSTOM_ROLES_POLICIES, weblogic.management.security.DeploymentModel.ADVANCED

getStagingMode

String getStagingMode()

Specifies whether a deployment's files are copied from a source on the Administration Server to the Managed Server's staging area during application preparation.

Staging mode for an application can only be set the first time the application is deployed. Once the staging mode for an application is set, it cannot be changed while the application is configured in the domain. The only way to change the staging mode is to undeploy and then redeploy the application.

This attribute overrides the server's staging mode.

See Also:
ServerTemplateMBean.getStagingMode()
Default Value:
AppDeploymentMBean.DEFAULT_STAGE
Valid Values:
AppDeploymentMBean.DEFAULT_STAGE, AppDeploymentMBean.NO_STAGE, AppDeploymentMBean.STAGE, AppDeploymentMBean.EXTERNAL_STAGE

getPlanStagingMode

String getPlanStagingMode()

Specifies whether an application's deployment plan is copied from a source on the Administration Server to the Managed Server's staging area during application preparation.

Plan staging mode for an application can only be set the first time the application is deployed. Once the plan staging mode for an application is set, it cannot be changed while the application is configured in the domain. The only way to change the plan staging mode is to undeploy and then redeploy the application.

This attribute overrides the server's plan staging mode.

See Also:
ServerTemplateMBean.getStagingMode()
Default Value:
AppDeploymentMBean.DEFAULT_STAGE
Valid Values:
AppDeploymentMBean.DEFAULT_STAGE, AppDeploymentMBean.NO_STAGE, AppDeploymentMBean.STAGE, AppDeploymentMBean.EXTERNAL_STAGE

createPlan

String createPlan(String planPath)
Create a deployment plan in the specified directory.

Parameters:
planPath -

createPlan

String createPlan()
Create a deployment plan in a default directory


getApplicationIdentifier

String getApplicationIdentifier()

The Application Identifier of the application version uniquely identifies the application version across all versions of all applications. If the application is not versioned, the Application Identifier is the same as the application name.

Returns:
The Application Identifier of the application

getApplicationName

String getApplicationName()

The name of the application.

Note that the name of the current MBean is not the name of the application.

Returns:
The name of the application

getAbsoluteInstallDir

String getAbsoluteInstallDir()
The fully resolved location of this application's installation root directory on the Administration Server.


getAbsolutePlanPath

String getAbsolutePlanPath()
The fully resolved location of this application's deployment plan on the Administration Server.


getAbsolutePlanDir

String getAbsolutePlanDir()
The fully resolved location of this application's deployment plan directory on the Administration Server.


getAbsoluteSourcePath

String getAbsoluteSourcePath()
The fully resolved location of this application's source files on the Administration Server.


getDeploymentPlan

byte[] getDeploymentPlan()
The contents of this application's deployment plan, returned as a byte[] containing the XML.

Access limited to the following security roles:
Deployer

getDeploymentPlanExternalDescriptors

byte[] getDeploymentPlanExternalDescriptors()
A zip file containing the external descriptors referenced in the deployment plan.

Returns:
A byte array containing a zip file of the external descriptors from the config root directory
Access limited to the following security roles:
Deployer

isCacheInAppDirectory

boolean isCacheInAppDirectory()

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02