Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl
Class TagValueImpl

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagBObjImpl<TagValue>
      extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.TagValueImpl
All Implemented Interfaces:
DiagConstants, DiagBObj<TagValue>, TagValue
Direct Known Subclasses:
AppsMsgIdTagValueImpl, WebAppNameTagValueImpl

public class TagValueImpl
extends DiagBObjImpl<TagValue>
implements TagValue

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/impl/TagValueImpl.java /main/14 2009/12/03 12:15:20 cshare Exp $
Author:
ppradhan

Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status
 
Field Summary
 
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants
APPS_MSG_ID_TAG_NAME, CFG_ADR_PROVIDER_CLASS, CFG_CACHE_PROVIDER_CLASS, CFG_CRED_PROVIDER_CLASS, CFG_DAO_FACTORY_CLASS, CFG_DB_CONN_INFO_PROVIDER_CLASS, CFG_DB_CONN_PROVIDER_CLASS, CFG_NLS_PROVIDER_CLASS, CFG_PLSQL_PROVIDER_CLASS, CFG_PROFILE_PROVIDER_CLASS, CFG_SECURITY_PROVIDER_CLASS, CFG_SESSION_INFO_PROVIDER_CLASS, CFG_URL_PROVIDER_FACTORY_CLASS, CFG_WLS_MBEANSRV_CONNINFO_PROVIDER_CLASS, DATA_SECURITY_PERMISSION_ALLOWED, DATA_SECURITY_PERMISSION_NOT_ALLOWED, DELIM_URL, EXEC_MODE_CLI, EXEC_MODE_ESS, EXEC_MODE_INCIDENT, EXEC_MODE_JAVA, EXEC_MODE_UI, EXECUTABLE_TYPE_JAVA, EXECUTABLE_TYPE_PLSQL, EXECUTABLE_TYPE_TESTREF, FORMAT_HTML, FORMAT_XML, GUID_ORACLE_MINUS1, GUID_ORACLE_ZERO, INPUTS_STATUS_ALL_OPT_INPUTS, INPUTS_STATUS_NO_INPUTS, INPUTS_STATUS_REQ_INPUTS_NO_DEFAULTS, INPUTS_STATUS_REQ_INPUTS_W_DEFAULTS, IO_FLAG_I, IO_FLAG_O, JMX_API_BASE_OBJECT_NAME, LINK_EXTERNAL, LINK_INTERNAL, LINK_METALINK, N, NLS_BUNDLE_JAVA_RES, NLS_BUNDLE_MSG_SVC, NLS_BUNDLE_RES_REF, NLS_BUNDLE_XLIFF, NO, NULL, ODF_MBEAN_DOMAIN_NAME, PARAM_MON_INTERVAL, PLSQL_DEBUG_ENABLED_SYSTEM_PROP, PREREQ_TYPE_TAG_VALUE, PREREQ_TYPE_TEST, SECONDS_IN_ONE_DAY, SECONDS_IN_ONE_HOUR, STATUS_CANCELED, STATUS_EXECERROR, STATUS_FAILURE, STATUS_RUNNING, STATUS_SUCCESS, STATUS_WARNING, SYS_PROP_MAX_MONITOR_INTERNVAL, SYS_PROP_MAX_NUM_THREADS, SYSPROP_APPCONNFILE, SYSPROP_DIAG_CONFIG_FILE, TAG_TYPE_DIAG, TAG_TYPE_TAXONOMY, TEST_TYPE_DECL, TEST_TYPE_JAVA, USER_NAME, WEB_APP_NAME_TAG_NAME, Y, YES
 
Constructor Summary
TagValueImpl()
           
 
Method Summary
 void addTests(java.util.List<java.lang.String> pTestNames)
          Associates the given list of test names to this tag name value.
 void copy(TagValue pObj)
          Copies the contents of the given object into this object
 void copyT(java.lang.Object pObj)
          Copies the contents of the given object into this object
 void create()
          This method will save the definition of this TagValue into the Applications Database.
 boolean exists()
          Checks if this tag value exists in the repository.
 void fetch()
          Fetches the tag value definition.
 void fetchAllTestIds(java.util.List<java.lang.String> pPrereqTestIds, java.util.List<java.lang.String> pInclTestIds, boolean pRecurse)
          Fetches test IDs for this tag value (note: the tag value ID must be set on this object prior to calling this API).
 java.lang.String getActiveFlag()
          Returns Active Flag value
 java.lang.String getDescription()
          Returns the description
 java.lang.String getDisplayName()
          Returns the tag value display name
 java.lang.String getParentTagValueId()
          Returns the parent tag value id
 java.lang.String getTagName()
          Returns the tag name
 java.lang.String getTagType()
          Returns the tag type e.g.
 java.lang.String getTagValue()
          Returns the tag value
 java.lang.String getTagValueId()
          Returns the tag value ID
 TagValuePrereqList getTagValuePrereqList()
          Returns the list of prerequisite tag values associated with this tag value object
 java.lang.String getTestAssocActiveFlag()
          Returns TestAssocActiveFlag value (Meaningful only in the context of a TestDef object)
 boolean hasTestReferences()
          Checks to see if this tag value is referred to from any diagnostic tests.
 boolean isCreatedAutomatically()
          Returns true if this tag-value is created automatically during loading of tests.
 void remove()
          Removes this tag value from the repository.
 void removeTests(java.util.List<java.lang.String> pTestNames)
          De-associates the given list of test names from this tag name value.
protected  void save()
           
 void setActiveFlag(java.lang.String pActiveFlag)
          Sets the Active flag to indicate whether tag value is active or not.
 void setDescription(java.lang.String pDescription)
          Sets the tag value description
 void setDisplayName(java.lang.String pDisplayName)
          Sets the tag value display name
 void setParentTagValueId(java.lang.String pParentTagValueId)
          Sets the parent tag value id
 void setTagName(java.lang.String pTagName)
          Sets the tag name
 void setTagType(java.lang.String pTagType)
          Sets the tag value type to indicate whether it is taxonomy related or independent tag.
 void setTagValue(java.lang.String pTagValue)
          Sets the tag value
 void setTagValueId(java.lang.String pTagValueId)
          Sets the tag value ID
 void setTagValuePrereqList(TagValuePrereqList pTagValuePrereqList)
          Sets the tag value prerequisite list for this tag value object
 void setTestAssocActiveFlag(java.lang.String pTestAssocActiveFlag)
          Sets the pIsTestAssocActive flag to indicate whether TagValue-TestDef association is active or not.
 void validateForCreateAndSave()
          Performs validations required before creating a new tag on the database.
 
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagBObjImpl
copyCommon, getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.DiagBObj
getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin
 

Constructor Detail

TagValueImpl

public TagValueImpl()
Method Detail

getTagValueId

public java.lang.String getTagValueId()
Description copied from interface: TagValue
Returns the tag value ID

Specified by:
getTagValueId in interface TagValue
Returns:
the tag value ID

getTagValue

public java.lang.String getTagValue()
Description copied from interface: TagValue
Returns the tag value

Specified by:
getTagValue in interface TagValue
Returns:
the tag value

getParentTagValueId

public java.lang.String getParentTagValueId()
Description copied from interface: TagValue
Returns the parent tag value id

Specified by:
getParentTagValueId in interface TagValue
Returns:
the parent tag value id

getTagName

public java.lang.String getTagName()
Description copied from interface: TagValue
Returns the tag name

Specified by:
getTagName in interface TagValue
Returns:
the tag name

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: TagValue
Returns the tag value display name

Specified by:
getDisplayName in interface TagValue
Returns:
the tag value display name

getDescription

public java.lang.String getDescription()
Description copied from interface: TagValue
Returns the description

Specified by:
getDescription in interface TagValue
Returns:
the description

getTagType

public java.lang.String getTagType()
Description copied from interface: TagValue
Returns the tag type e.g. "T" for taxonomy or "N" for native

Specified by:
getTagType in interface TagValue
Returns:
the tag type

getActiveFlag

public java.lang.String getActiveFlag()
Description copied from interface: TagValue
Returns Active Flag value

Specified by:
getActiveFlag in interface TagValue
Returns:
"Y" if Tag Value is active, else "N"

getTestAssocActiveFlag

public java.lang.String getTestAssocActiveFlag()
Description copied from interface: TagValue
Returns TestAssocActiveFlag value (Meaningful only in the context of a TestDef object)

Specified by:
getTestAssocActiveFlag in interface TagValue
Returns:
"Y" if TagValue-TestDef association is active

getTagValuePrereqList

public TagValuePrereqList getTagValuePrereqList()
Description copied from interface: TagValue
Returns the list of prerequisite tag values associated with this tag value object

Specified by:
getTagValuePrereqList in interface TagValue
Returns:
the list of TagValuePrereq objects

setTagValueId

public void setTagValueId(java.lang.String pTagValueId)
Description copied from interface: TagValue
Sets the tag value ID

Specified by:
setTagValueId in interface TagValue
Parameters:
pTagValueId - the tag value ID

setTagValue

public void setTagValue(java.lang.String pTagValue)
Description copied from interface: TagValue
Sets the tag value

Specified by:
setTagValue in interface TagValue
Parameters:
pTagValue - the tag value

setParentTagValueId

public void setParentTagValueId(java.lang.String pParentTagValueId)
Description copied from interface: TagValue
Sets the parent tag value id

Specified by:
setParentTagValueId in interface TagValue
Parameters:
pParentTagValueId - the parent tag value id

setTagName

public void setTagName(java.lang.String pTagName)
Description copied from interface: TagValue
Sets the tag name

Specified by:
setTagName in interface TagValue
Parameters:
pTagName - the tag name

setDisplayName

public void setDisplayName(java.lang.String pDisplayName)
Description copied from interface: TagValue
Sets the tag value display name

Specified by:
setDisplayName in interface TagValue
Parameters:
pDisplayName - the tag value display name

setDescription

public void setDescription(java.lang.String pDescription)
Description copied from interface: TagValue
Sets the tag value description

Specified by:
setDescription in interface TagValue
Parameters:
pDescription - the tag value description

setTagType

public void setTagType(java.lang.String pTagType)
Description copied from interface: TagValue
Sets the tag value type to indicate whether it is taxonomy related or independent tag.

Specified by:
setTagType in interface TagValue
Parameters:
pTagType - tag value type.

setActiveFlag

public void setActiveFlag(java.lang.String pActiveFlag)
Description copied from interface: TagValue
Sets the Active flag to indicate whether tag value is active or not.

Specified by:
setActiveFlag in interface TagValue
Parameters:
pActiveFlag - flag for the tag value

setTestAssocActiveFlag

public void setTestAssocActiveFlag(java.lang.String pTestAssocActiveFlag)
Description copied from interface: TagValue
Sets the pIsTestAssocActive flag to indicate whether TagValue-TestDef association is active or not. (Meaningful only in the context of a TestDef object)

Specified by:
setTestAssocActiveFlag in interface TagValue
Parameters:
pTestAssocActiveFlag - flag for the tag value

setTagValuePrereqList

public void setTagValuePrereqList(TagValuePrereqList pTagValuePrereqList)
Description copied from interface: TagValue
Sets the tag value prerequisite list for this tag value object

Specified by:
setTagValuePrereqList in interface TagValue
Parameters:
pTagValuePrereqList - tag value prerequisite list for this tag value objectn

copy

public void copy(TagValue pObj)
Description copied from interface: TagValue
Copies the contents of the given object into this object

Specified by:
copy in interface TagValue
Specified by:
copy in class DiagBObjImpl<TagValue>
Parameters:
pObj - the object to copy into this object.

isCreatedAutomatically

public boolean isCreatedAutomatically()
Description copied from interface: TagValue
Returns true if this tag-value is created automatically during loading of tests.

Specified by:
isCreatedAutomatically in interface TagValue
Returns:

copyT

public void copyT(java.lang.Object pObj)
Description copied from interface: DiagBObj
Copies the contents of the given object into this object

Specified by:
copyT in interface DiagBObj<TagValue>
Parameters:
pObj - the contents of the given object into this object

fetchAllTestIds

public void fetchAllTestIds(java.util.List<java.lang.String> pPrereqTestIds,
                            java.util.List<java.lang.String> pInclTestIds,
                            boolean pRecurse)
Description copied from interface: TagValue
Fetches test IDs for this tag value (note: the tag value ID must be set on this object prior to calling this API). The fetched test IDs are divded into two categories : prerequisite tests, and included tests.
Prerequisite tests are tests that are prerequisites for this tag value id (either tests included in prerequisite tag values for this tag value or tests prerequisite to tests included in this tag value).
Included tests are tests that are included in this tag value (either as direct children or descendants via children tag values).
The prerequisites are placed in the pPrereqTestIds list while the includes are placed in the pInclTestIds list objects.

Specified by:
fetchAllTestIds in interface TagValue
Parameters:
pPrereqTestIds - - List object where the API will add prerequisite test IDs.
pInclTestIds - - List object where the API will add included test IDs.
pRecurse - - if true, all nested tag values are also traversed. Otherwise, only the immediate prerequisites and children are traversed.

create

public void create()
Description copied from interface: TagValue
This method will save the definition of this TagValue into the Applications Database. Clients will need to set all the required properties on this TagValue object prior to calling this method.

The required attributes are tagName, tagValue and displayName. The description attribute can also be populated optionally. If the tag value is getting created for the first time, this API for the tag automatically generates a tagValueId and sets it on this object.

Note: A tag entity with the given tag name should already exist prior to creating a tag value for that tag name.

Specified by:
create in interface TagValue

validateForCreateAndSave

public void validateForCreateAndSave()
Description copied from interface: TagValue
Performs validations required before creating a new tag on the database.

Specified by:
validateForCreateAndSave in interface TagValue

save

protected void save()

addTests

public void addTests(java.util.List<java.lang.String> pTestNames)
              throws DiagfwkException
Description copied from interface: TagValue
Associates the given list of test names to this tag name value.

Specified by:
addTests in interface TagValue
Parameters:
pTestNames - test names to associate with this tag name value
Throws:
DiagfwkException - when any error occurs.

removeTests

public void removeTests(java.util.List<java.lang.String> pTestNames)
                 throws DiagfwkException
Description copied from interface: TagValue
De-associates the given list of test names from this tag name value.

Specified by:
removeTests in interface TagValue
Parameters:
pTestNames - test names to de-associate from this tag name value
Throws:
DiagfwkException - when any error occurs.

hasTestReferences

public boolean hasTestReferences()
Description copied from interface: TagValue
Checks to see if this tag value is referred to from any diagnostic tests. References could be in the form of associations or prerequisite relationship.

Currently, requires tag name and tag value to be set prior to invoking this method.

Specified by:
hasTestReferences in interface TagValue
Returns:
true if this tag value is referred to by at least one test. returns false otherwise.

remove

public void remove()
Description copied from interface: TagValue
Removes this tag value from the repository. Any tests that references this tag value are also cleaned up so that they no longer reference this tag value after this operation.

Tag name and tag value must be set prior to invoking this API.

Specified by:
remove in interface TagValue

fetch

public void fetch()
Description copied from interface: TagValue
Fetches the tag value definition. Tag name and value need to be set on this object prior to calling this method. Additionally, only the tag value definition for the given tag name and value is fetched; no child tag values are fetched.

Specified by:
fetch in interface TagValue

exists

public boolean exists()
Description copied from interface: TagValue
Checks if this tag value exists in the repository.

The tag name and value must be set on this object prior to calling this method.

Specified by:
exists in interface TagValue
Returns:
true if tag value exists, false otherwise.

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.