public class SocialNetworkAccount extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME
This entity name.
|
Constructor and Description |
---|
SocialNetworkAccount()
Constructor for JPA.
|
Modifier and Type | Method and 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() |
public static final String ENTITY_NAME
public SocialNetworkAccount()
public SocialNetworkApplication getApplication()
public String getAuthenticationResponse()
public String getId()
public boolean isEnabled()
public boolean isAllServiceInstances()
public String getPublicationDestination()
public String getPublicationToken()
public void setApplication(SocialNetworkApplication application)
application
- the application.public void setAuthenticationResponse(String authenticationResponse)
authenticationResponse
- the authentication response.public void setEnabled(boolean enabled)
enabled
- the enabled value to set.public void setAllServiceInstances(boolean isAllServiceInstances)
isAllServiceInstances
- the isAllServiceInstances value to set.public SocialNetworkMessage addMessage(String messageContent, Date publishDate)
messageContent
- the message content.publishDate
- the message publish date.public String getName()
public void setName(String name)
name
- the name value to set.public String getServiceInstanceId()
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- the identifier of the service instance
this account belongs to.public void setPublicationDestination(String publicationDestination)
consumerSecret
- the consumer secret.public void setPublicationToken(String publicationToken)
publicationToken
- the tokenLumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.