public class SocialNetworkApplication extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME
This entity name.
|
Modifier and Type | Method and Description |
---|---|
SocialNetworkAccount |
addAccount(boolean enabled,
boolean isAllServiceInstances)
Adds an account to this application.
|
Set<SocialNetworkAccount> |
getAccounts()
Returns the accounts.
|
String |
getConsumerKey()
Returns the consumerKey for this application in this network.
|
String |
getConsumerSecret()
Returns the consumerSecret token to authenticate this application in this
social network.
|
String |
getId()
Returns the application's id.
|
String |
getName()
Returns the name of the application.
|
SocialNetwork |
getSocialNetwork()
Returns the social network the application is associated to.
|
boolean |
isEnabled()
Retuns if the application is enabled.
|
void |
setAccounts(Set<SocialNetworkAccount> accounts)
Sets the accounts.
|
void |
setConsumerKey(String consumerKey)
Sets the consumerKey for this application in this social network.
|
void |
setConsumerSecret(String consumerSecret)
Set the consumerSecret for this application to authenticate in this
social network.
|
void |
setEnabled(boolean enabled)
Sets if the application is enabled.
|
void |
setName(String name)
Sets the name of this application.
|
void |
setSocialNetwork(SocialNetwork socialNetwork)
Sets the social network the application belongs to.
|
String |
toString() |
public static final String ENTITY_NAME
public String getConsumerKey()
public String getConsumerSecret()
public String getId()
public String getName()
public SocialNetwork getSocialNetwork()
public boolean isEnabled()
public Set<SocialNetworkAccount> getAccounts()
public void setConsumerKey(String consumerKey)
consumerKey
- the consumer key.public void setConsumerSecret(String consumerSecret)
consumerSecret
- the consumer secret.public void setEnabled(boolean enabled)
enabled
- if the application is enabled.public void setName(String name)
name
- the name.public void setSocialNetwork(SocialNetwork socialNetwork)
socialNetwork
- the social network.public void setAccounts(Set<SocialNetworkAccount> accounts)
accounts
- the accounts value to set.public SocialNetworkAccount addAccount(boolean enabled, boolean isAllServiceInstances)
enabled
- the account is enabled.isAllServiceInstances
- the account can publish to all service instances.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.