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

E22562-07

oracle.apps.fnd.applcore.dt.flex.deploy
Class FlexfieldRunProfileEntry

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.flex.deploy.FlexfieldRunProfileEntry
All Implemented Interfaces:
java.io.Serializable, FlexfieldRunProfile.Entry

public class FlexfieldRunProfileEntry
extends java.lang.Object
implements java.io.Serializable, FlexfieldRunProfile.Entry

An implementation of FlexfieldRunProfile.Entry.

See Also:
Serialized Form

Nested Class Summary
static class FlexfieldRunProfileEntry.SyncStatus
          Sync statuses.
 
Constructor Summary
FlexfieldRunProfileEntry(FlexfieldRunProfile runProfile, java.lang.Boolean enabled, java.lang.String flexfieldCode, java.lang.String flexfieldType, java.lang.Long applicationId, java.util.Date lastSyncDate, java.lang.String syncStatus)
          Construct the class with all values.
 
Method Summary
 void clearRepositoryDirectory()
          Clean the repository directory and all it's contents.
static FlexfieldRunProfileEntry fromXML(FlexfieldRunProfile runProfile, org.w3c.dom.Element entry)
          Factory method to turn XML Element entry into a FlexfieldRunProfileEntry within runProfile.
 java.lang.Long getApplicationId()
          Get the Application Id.
 java.lang.String getFlexfieldCode()
          Get the flex code.
 java.lang.String getFlexfieldType()
          Get the flex type.
 java.lang.Object getIndexedData(int index)
          Get the data on an index basis, where the index represents the place in the 'Run with Flexfields' panel.
 java.util.Date getLastSyncDate()
          Get the last sync date.
 java.lang.String getRepositoryDirectory()
          Gets the directory of the repository to be used for this entry.
 FlexfieldRunProfile getRunProfile()
          Get the back pointer to the owning run porfile.
 FlexfieldRunProfileEntry.SyncStatus getSyncStatus()
          Get the sync status.
 java.lang.Boolean isEnabled()
          Is this entry enabled?
 void resetSync()
          Reset the sync status and date.
 void setApplicationId(java.lang.Long applicationID)
          Set the Application Id.
 void setEnabled(java.lang.Boolean enabled)
          Set enabled.
 void setFlexfieldCode(java.lang.String flexfieldCode)
          Set the flex code.
 void setFlexfieldType(java.lang.String flexfieldType)
          Set the flex type.
 void setIndexedData(int index, java.lang.Object aValue)
          Set the data on an index basis, where the index represents the place in the 'Run with Flexfields' panel.
 void setLastSyncDate(java.util.Date lastSyncDate)
          Set the last sync date.
 void setSyncStatus(FlexfieldRunProfileEntry.SyncStatus syncStatus)
          Set the sync status.
 java.lang.String toXML()
          Turn this into a single xml Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexfieldRunProfileEntry

public FlexfieldRunProfileEntry(FlexfieldRunProfile runProfile,
                                java.lang.Boolean enabled,
                                java.lang.String flexfieldCode,
                                java.lang.String flexfieldType,
                                java.lang.Long applicationId,
                                java.util.Date lastSyncDate,
                                java.lang.String syncStatus)
Construct the class with all values.

Parameters:
runProfile - owning run profile.
enabled - enabled or not.
flexfieldCode - flex code.
flexfieldType - flex type.
applicationId - app id.
lastSyncDate - last sync date, possibly null.
syncStatus - sync status.
Method Detail

toXML

public java.lang.String toXML()
Turn this into a single xml Element.

Returns:
XML representation as a String.

fromXML

public static FlexfieldRunProfileEntry fromXML(FlexfieldRunProfile runProfile,
                                               org.w3c.dom.Element entry)
Factory method to turn XML Element entry into a FlexfieldRunProfileEntry within runProfile.

Parameters:
runProfile - profile to add to.
entry - entry to decode.
Returns:
Constructed FlexfieldRunProfileEntry.

getIndexedData

public java.lang.Object getIndexedData(int index)
Get the data on an index basis, where the index represents the place in the 'Run with Flexfields' panel.

Parameters:
index -
Returns:
data at this index.

setIndexedData

public void setIndexedData(int index,
                           java.lang.Object aValue)
Set the data on an index basis, where the index represents the place in the 'Run with Flexfields' panel. Only the enabled flag can be set this way, as it the only editable value in the table.

Parameters:
index - 0 based index.
aValue - value to set.

setEnabled

public void setEnabled(java.lang.Boolean enabled)
Set enabled.

Parameters:
enabled - enabled or not.

isEnabled

public java.lang.Boolean isEnabled()
Is this entry enabled?

Specified by:
isEnabled in interface FlexfieldRunProfile.Entry
Returns:
true if enabled, false otherwise.

setFlexfieldCode

public void setFlexfieldCode(java.lang.String flexfieldCode)
Set the flex code.

Parameters:
flexfieldCode - flex code.

getFlexfieldCode

public java.lang.String getFlexfieldCode()
Get the flex code.

Specified by:
getFlexfieldCode in interface FlexfieldRunProfile.Entry
Returns:
flex code.

setFlexfieldType

public void setFlexfieldType(java.lang.String flexfieldType)
Set the flex type.

Parameters:
flexfieldType - flex type.

getFlexfieldType

public java.lang.String getFlexfieldType()
Get the flex type.

Specified by:
getFlexfieldType in interface FlexfieldRunProfile.Entry
Returns:
flex type.

setApplicationId

public void setApplicationId(java.lang.Long applicationID)
Set the Application Id.

Parameters:
applicationID - Application Id.

getApplicationId

public java.lang.Long getApplicationId()
Get the Application Id.

Specified by:
getApplicationId in interface FlexfieldRunProfile.Entry
Returns:
Application Id.

resetSync

public void resetSync()
Reset the sync status and date.


setLastSyncDate

public void setLastSyncDate(java.util.Date lastSyncDate)
Set the last sync date.

Parameters:
lastSyncDate - last sync date.

getLastSyncDate

public java.util.Date getLastSyncDate()
Get the last sync date.

Returns:
last sync date.

setSyncStatus

public void setSyncStatus(FlexfieldRunProfileEntry.SyncStatus syncStatus)
Set the sync status.

Parameters:
syncStatus - sync status.

getSyncStatus

public FlexfieldRunProfileEntry.SyncStatus getSyncStatus()
Get the sync status.

Returns:
sync status.

getRepositoryDirectory

public java.lang.String getRepositoryDirectory()
Gets the directory of the repository to be used for this entry. The directory must be a valid path that can be passed into the constructor of java.io.File.

Specified by:
getRepositoryDirectory in interface FlexfieldRunProfile.Entry
Returns:
the directory of the repository

getRunProfile

public FlexfieldRunProfile getRunProfile()
Get the back pointer to the owning run porfile.

Returns:
run profile.

clearRepositoryDirectory

public void clearRepositoryDirectory()
Clean the repository directory and all it's contents.

Specified by:
clearRepositoryDirectory in interface FlexfieldRunProfile.Entry

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.