Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.dt.deploy
Class WeblogicWebAppNodeUtil

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.deploy.WeblogicWebAppNodeUtil

public class WeblogicWebAppNodeUtil
extends java.lang.Object

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/applcore/applications/DesignTime/DT/src/oracle/apps/fnd/applcore/dt/deploy/WeblogicWebAppNodeUtil.java /main/2 2010/09/13 15:50:07 mluetchf Exp $
Author:
dechrist

Constructor Summary
WeblogicWebAppNodeUtil()
           
 
Method Summary
static void addSharedLib(Project project, WeblogicAppLibrary sharedLib)
          Adds a shared library to weblogic.xml.
static oracle.jdeveloper.xml.wl.war.WeblogicWebAppNode findOrCreateWeblogicAppNode(Project project)
          Gets or creates the xml node for weblogic.xml.
static boolean sharedLibExists(Project project, java.lang.String libName)
          Checks if a shared lib exists in weblogic.xml.
static boolean weblogicAppNodeExists(Project project)
          Checks whether weblogic.xml file exists for a project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeblogicWebAppNodeUtil

public WeblogicWebAppNodeUtil()
Method Detail

findOrCreateWeblogicAppNode

public static oracle.jdeveloper.xml.wl.war.WeblogicWebAppNode findOrCreateWeblogicAppNode(Project project)
                                                                                   throws java.lang.Exception
Gets or creates the xml node for weblogic.xml. This method will create the node if it does not already exist.

Parameters:
project - the current project
Returns:
the node for weblogic.xml
Throws:
java.lang.Exception - if any errors are encountered

weblogicAppNodeExists

public static boolean weblogicAppNodeExists(Project project)
Checks whether weblogic.xml file exists for a project. This method will not create this file if it does not exist.

Parameters:
project - the current project
Returns:
true if weblogic.xml exists and false otherwise

addSharedLib

public static void addSharedLib(Project project,
                                WeblogicAppLibrary sharedLib)
                         throws java.lang.Exception
Adds a shared library to weblogic.xml. TODO: Add an api that would add multiple entries at the same time in the same XMLEF transaction. If a library with the same name already exists, its version number will be set to sharedLib.getSpecificationVersion() if not already set. This method will attempt to check-out the file.

Parameters:
project - the current project
sharedLib - the shared library object to add
Throws:
java.lang.Exception - if any errors are encountered

sharedLibExists

public static boolean sharedLibExists(Project project,
                                      java.lang.String libName)
Checks if a shared lib exists in weblogic.xml.

Parameters:
project - the current project
libName - the library name to look for
Returns:
true if the shared lib exists and false otherwise

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.