Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

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 $
dechrist

Constructor Summary
WeblogicWebAppNodeUtil()
           
 
Method Summary
static void addSharedLib(oracle.ide.model.Project project, WeblogicAppLibrary sharedLib)
          Adds a shared library to weblogic.xml.
static oracle.jdeveloper.xml.wl.war.WeblogicWebAppNode findOrCreateWeblogicAppNode(oracle.ide.model.Project project)
          Gets or creates the xml node for weblogic.xml.
static boolean sharedLibExists(oracle.ide.model.Project project, java.lang.String libName)
          Checks if a shared lib exists in weblogic.xml.
static boolean weblogicAppNodeExists(oracle.ide.model.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(oracle.ide.model.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(oracle.ide.model.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(oracle.ide.model.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(oracle.ide.model.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 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.