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

E22562-07

oracle.apps.fnd.applcore.oaext.osn.social
Class SocialObjectAdapter

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.osn.OsnObjectAdapter
      extended by oracle.apps.fnd.applcore.oaext.osn.social.SocialObjectAdapter
All Implemented Interfaces:
java.io.Serializable, SocialApiAdapter

public class SocialObjectAdapter
extends OsnObjectAdapter
implements SocialApiAdapter, java.io.Serializable

The OSN API specific implementation of the OsnObjectAdapter. This class will interrogate the View Object/Row passed in and create the structures required to send to OSN.

Since:
11.1.1.7.0
Version:
$Header: atgpf/applcore/applications/Common/Model/src/oracle/apps/fnd/applcore/oaext/osn/social/SocialObjectAdapter.java /st_atgpf_pt-11.1.1.7.0/10 2013/05/16 14:43:11 pacross Exp $
See Also:
Serialized Form

Field Summary
protected static java.lang.String ATTRIBUTE_PROPERTY_SEPARATOR
           
 
Fields inherited from class oracle.apps.fnd.applcore.oaext.osn.OsnObjectAdapter
_isValid, _osnAction, OSN_ACTION_DELETE, OSN_ACTION_INSERT, OSN_ACTION_MANUAL_INSERT, OSN_ACTION_MANUAL_UPDATE, OSN_ACTION_UNKNOWN, OSN_ACTION_UPDATE, OSN_AUTOMATIC_SEND, OSN_MANUAL_SEND
 
Constructor Summary
SocialObjectAdapter(byte osnAction)
          Create an OSN object adapter.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getAllFieldsValues()
          Get all of the field name and values that are to be in the payload.
 java.lang.String getAppId()
          Get the application id for the OSN structure registration of an object.
 int getFieldCount()
          Provides the number of fields that can be sent to OSN.
 java.lang.String getLoggedInUser()
          Get the currently logged in user.
 java.lang.String getName()
          A name that can identify this OSN object.
 java.lang.String getObjectExternalId()
          The unique identifier that Oracle Social Network will know the object as.
 java.lang.String getObjectId()
          The unique identifier that Oracle Social Network will know the object as.
 java.lang.String getObjectName()
          The translated display name for the object.
 java.lang.String getRegistrationExternalId()
          The unique identifier that Oracle Social Network will know the object registration as.
 java.lang.String getType()
          Get the constant value of the type for the OSN structure registration of an object.
 java.util.Map<java.lang.String,java.lang.Object> getUpdatedFieldsValues()
          Get any updated of the field name and values that are to be in the payload.
 boolean isOsnAutomaticUpload()
          Has the customer chosen Automatic OSN upload integration?
 boolean isOsnManualUpload()
          Has the customer chosen Manual OSN upload integration?
 void loadOsnData(oracle.jbo.ViewObject osnVo, oracle.jbo.server.ViewRowImpl osnRow, java.lang.String[] osnAttributes)
          Harvest the VO and Row to get the payload that will be sent to Oracle Social Network.
 void parseViewObject(oracle.jbo.ViewObject osnVo, oracle.jbo.server.ViewRowImpl osnRow, java.lang.String[] osnAttributes)
          Create an OSN object adapter which will harvest the VO and Row to get the payload that will be sent to Oracle Social Network.
 
Methods inherited from class oracle.apps.fnd.applcore.oaext.osn.OsnObjectAdapter
convertEntityStateToAction, getOsnAction, getOsnActionAsString, isValid
 
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.applcore.oaext.osn.social.SocialApiAdapter
getOsnAction
 

Field Detail

ATTRIBUTE_PROPERTY_SEPARATOR

protected static final java.lang.String ATTRIBUTE_PROPERTY_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SocialObjectAdapter

public SocialObjectAdapter(byte osnAction)
Create an OSN object adapter.

Parameters:
osnAction - insert/update/delete action.
Method Detail

getName

public java.lang.String getName()
A name that can identify this OSN object. This will primarily be used for debugging.

Specified by:
getName in class OsnObjectAdapter
Returns:
name for the OSN Object

getAppId

public java.lang.String getAppId()
Get the application id for the OSN structure registration of an object.

Specified by:
getAppId in interface SocialApiAdapter
Returns:
the application id.

getType

public java.lang.String getType()
Get the constant value of the type for the OSN structure registration of an object.

Specified by:
getType in interface SocialApiAdapter
Returns:
the constant type definition.

getRegistrationExternalId

public java.lang.String getRegistrationExternalId()
The unique identifier that Oracle Social Network will know the object registration as.

Specified by:
getRegistrationExternalId in interface SocialApiAdapter
Returns:
the registration external id.

getObjectExternalId

public java.lang.String getObjectExternalId()
The unique identifier that Oracle Social Network will know the object as.

Specified by:
getObjectExternalId in interface SocialApiAdapter
Specified by:
getObjectExternalId in class OsnObjectAdapter
Returns:

getObjectId

public java.lang.String getObjectId()
The unique identifier that Oracle Social Network will know the object as.

Specified by:
getObjectId in interface SocialApiAdapter
Returns:

getObjectName

public java.lang.String getObjectName()
The translated display name for the object.

Specified by:
getObjectName in interface SocialApiAdapter
Returns:

getAllFieldsValues

public java.util.Map<java.lang.String,java.lang.Object> getAllFieldsValues()
Get all of the field name and values that are to be in the payload.

Specified by:
getAllFieldsValues in interface SocialApiAdapter
Returns:
the fields.

getUpdatedFieldsValues

public java.util.Map<java.lang.String,java.lang.Object> getUpdatedFieldsValues()
Get any updated of the field name and values that are to be in the payload. This will be a strict subset of the values returned by getAllFieldsValues().

Specified by:
getUpdatedFieldsValues in interface SocialApiAdapter
Returns:
the fields.

getFieldCount

public int getFieldCount()
Provides the number of fields that can be sent to OSN.

Overrides:
getFieldCount in class OsnObjectAdapter
Returns:
the number of OSN fields.

parseViewObject

public void parseViewObject(oracle.jbo.ViewObject osnVo,
                            oracle.jbo.server.ViewRowImpl osnRow,
                            java.lang.String[] osnAttributes)
Create an OSN object adapter which will harvest the VO and Row to get the payload that will be sent to Oracle Social Network.

Parameters:
osnVo - the View Object containing the row to send to OSN.
osnRow - the row to send to OSN.
osnAttributes - the names of the fields to send to OSN.

loadOsnData

public void loadOsnData(oracle.jbo.ViewObject osnVo,
                        oracle.jbo.server.ViewRowImpl osnRow,
                        java.lang.String[] osnAttributes)
Harvest the VO and Row to get the payload that will be sent to Oracle Social Network.

Parameters:
osnVo - the View Object containing the row to send to OSN.
osnRow - the row to send to OSN.
osnAttributes - the names of the fields to send to OSN.

isOsnManualUpload

public boolean isOsnManualUpload()
Has the customer chosen Manual OSN upload integration?

Specified by:
isOsnManualUpload in interface SocialApiAdapter
Returns:
true if manual, false otherwise.

isOsnAutomaticUpload

public boolean isOsnAutomaticUpload()
Has the customer chosen Automatic OSN upload integration?

Specified by:
isOsnAutomaticUpload in interface SocialApiAdapter
Returns:
true if automatic, false otherwise.

getLoggedInUser

public java.lang.String getLoggedInUser()
Get the currently logged in user. This value should be loaded optimistically not when called, as the sending of objects to osn may happen in a separate thread (it is undefined), where standard JPS apis will malfunction.

Specified by:
getLoggedInUser in interface SocialApiAdapter
Returns:
loged in used via adf apis.

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.