public class SocialNetwork extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME
This entity name.
|
Constructor and Description |
---|
SocialNetwork() |
Modifier and Type | Method and Description |
---|---|
SocialNetworkApplication |
addApplication(String consumerKey,
String consumerSecret,
boolean enabled,
String name)
Adds an application to this social network.
|
Set<SocialNetworkApplication> |
getApplications()
Returns the applications.
|
String |
getId()
Returns the Id of the social network.
|
int |
getMessageMaxLength()
Returns the maximum size a message may have in this social network.
|
String |
getName()
Returns the name of the social network.
|
String |
getPermissions()
Retrieves needed permissions when registering application to an account
in this social network.
|
String |
retrievePermissionURL()
Returns the needed URL to retrieve permission tokens.
|
void |
setApplications(Set<SocialNetworkApplication> applications)
Sets the applications.
|
void |
setMessageMaxLength(int maxLength)
Sets the maximum size a message may have in this social network.
|
void |
setName(String name)
Sets the name of the social network.
|
void |
setPermissions(String permissions)
Sets value of needed permissions when registering application to an
account in this social network.
|
String |
toString() |
public static final String ENTITY_NAME
public String getId()
public int getMessageMaxLength()
public String getName()
public String getPermissions()
public Set<SocialNetworkApplication> getApplications()
public String retrievePermissionURL()
public void setMessageMaxLength(int maxLength)
maxLength
- the maximum length.public void setName(String name)
name
- the name.public void setPermissions(String permissions)
permissions
- the permissions.public void setApplications(Set<SocialNetworkApplication> applications)
applications
- the applications value to set.public SocialNetworkApplication addApplication(String consumerKey, String consumerSecret, boolean enabled, String name)
consumerKey
- the consumer key.consumerSecret
- the consumer secret.enabled
- the application is enabledname
- the name.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.