Package lumis.socialnetworkintegration
Class SocialNetworkAccount
- java.lang.Object
-
- lumis.socialnetworkintegration.SocialNetworkAccount
-
- All Implemented Interfaces:
Serializable
public class SocialNetworkAccount extends Object implements Serializable
Represents the account from which messages will be published to a social- Since:
- 6.1.0
- Version:
- $Revision: 17594 $ $Date: 2015-07-17 11:22:41 -0300 (Fri, 17 Jul 2015) $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
This entity name.
-
Constructor Summary
Constructors Constructor Description SocialNetworkAccount()
Constructor for JPA.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocialNetworkMessage
addMessage(String messageContent, Date publishDate)
Adds a message using this account.SocialNetworkApplication
getApplication()
Returns the application to which this account will publish to.String
getAuthenticationResponse()
Returns the authentication response sent by validation/authorization process.String
getId()
Returns the account's id.String
getName()
Returns the name.String
getPublicationDestination()
Returns the publicationDestination path this application uses when publishing in this social network.String
getPublicationToken()
Returns the publicationToken this application uses when publishing in this social network.String
getServiceInstanceId()
Returns the identifier of the service instance this account belongs to.boolean
isAllServiceInstances()
Returns the isAllServiceInstances.boolean
isEnabled()
Returns the enabled.void
setAllServiceInstances(boolean isAllServiceInstances)
Sets the isAllServiceInstances.void
setApplication(SocialNetworkApplication application)
Set the application to which this account will publish to.void
setAuthenticationResponse(String authenticationResponse)
Set the authentication response sent by validation/authorization process.void
setEnabled(boolean enabled)
Sets the enabled.void
setName(String name)
Sets the name.void
setPublicationDestination(String publicationDestination)
Set the publicationDestination for this application to publish in this social network.void
setPublicationToken(String publicationToken)
Set the publicationToken this application uses when publishing in this social network.void
setServiceInstanceId(String serviceInstanceId)
Sets the identifier of the service instance this account belongs to.String
toString()
-
-
-
Field Detail
-
ENTITY_NAME
public static final String ENTITY_NAME
This entity name.- Since:
- 6.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplication
public SocialNetworkApplication getApplication()
Returns the application to which this account will publish to.- Since:
- 6.1.0
-
getAuthenticationResponse
public String getAuthenticationResponse()
Returns the authentication response sent by validation/authorization process.- Since:
- 6.1.0
-
getId
public String getId()
Returns the account's id.- Since:
- 6.1.0
-
isEnabled
public boolean isEnabled()
Returns the enabled.- Returns:
- the enabled
- Since:
- 6.1.0
-
isAllServiceInstances
public boolean isAllServiceInstances()
Returns the isAllServiceInstances.- Returns:
- the isAllServiceInstances
- Since:
- 6.1.0
-
getPublicationDestination
public String getPublicationDestination()
Returns the publicationDestination path this application uses when publishing in this social network.- Since:
- 8.1.0
-
getPublicationToken
public String getPublicationToken()
Returns the publicationToken this application uses when publishing in this social network.- Since:
- 8.1.0
-
setApplication
public void setApplication(SocialNetworkApplication application)
Set the application to which this account will publish to.- Parameters:
application
- the application.- Since:
- 6.1.0
-
setAuthenticationResponse
public void setAuthenticationResponse(String authenticationResponse)
Set the authentication response sent by validation/authorization process.- Parameters:
authenticationResponse
- the authentication response.- Since:
- 6.1.0
-
setEnabled
public void setEnabled(boolean enabled)
Sets the enabled.- Parameters:
enabled
- the enabled value to set.- Since:
- 6.1.0
-
setAllServiceInstances
public void setAllServiceInstances(boolean isAllServiceInstances)
Sets the isAllServiceInstances.- Parameters:
isAllServiceInstances
- the isAllServiceInstances value to set.- Since:
- 6.1.0
-
addMessage
public SocialNetworkMessage addMessage(String messageContent, Date publishDate)
Adds a message using this account.- Parameters:
messageContent
- the message content.publishDate
- the message publish date.- Returns:
- the created message.
- Since:
- 6.1.0
-
getName
public String getName()
Returns the name.- Returns:
- the name
- Since:
- 6.1.0
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the name value to set.- Since:
- 6.1.0
-
getServiceInstanceId
public String getServiceInstanceId()
Returns the identifier of the service instance this account belongs to.- Returns:
- the identifier of the service instance this account belongs to.
- Since:
- 6.1.0
-
setServiceInstanceId
public void setServiceInstanceId(String serviceInstanceId)
Sets the identifier of the service instance this account belongs to.- Parameters:
serviceInstanceId
- the identifier of the service instance this account belongs to.- Since:
- 6.1.0
-
setPublicationDestination
public void setPublicationDestination(String publicationDestination)
Set the publicationDestination for this application to publish in this social network.- Parameters:
consumerSecret
- the consumer secret.- Since:
- 8.1.0
-
setPublicationToken
public void setPublicationToken(String publicationToken)
Set the publicationToken this application uses when publishing in this social network.- Parameters:
publicationToken
- the token- Since:
- 8.1.0
-
-