lumis.socialnetworkintegration
Class SocialNetwork

Package class diagram package SocialNetwork
java.lang.Object
  extended by lumis.socialnetworkintegration.SocialNetwork
All Implemented Interfaces:
Serializable

public class SocialNetwork
extends Object
implements Serializable

Represents a social network.

Since:
6.1.0
See Also:
Serialized Form

Field Summary
static String ENTITY_NAME
          This entity name.
 
Constructor Summary
SocialNetwork()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTITY_NAME

public static final String ENTITY_NAME
This entity name.

Since:
6.1.0
See Also:
Constant Field Values
Constructor Detail

SocialNetwork

public SocialNetwork()
Method Detail

getId

public String getId()
Returns the Id of the social network.

Since:
6.1.0

getMessageMaxLength

public int getMessageMaxLength()
Returns the maximum size a message may have in this social network.

Since:
6.1.0

getName

public String getName()
Returns the name of the social network.

Since:
6.1.0

getPermissions

public String getPermissions()
Retrieves needed permissions when registering application to an account in this social network.

Since:
6.1.0

getApplications

public Set<SocialNetworkApplication> getApplications()
Returns the applications.

Returns:
the applications
Since:
6.1.0

retrievePermissionURL

public String retrievePermissionURL()
Returns the needed URL to retrieve permission tokens.

Since:
6.1.0

setMessageMaxLength

public void setMessageMaxLength(int maxLength)
Sets the maximum size a message may have in this social network.

Parameters:
maxLength - the maximum length.
Since:
6.1.0

setName

public void setName(String name)
Sets the name of the social network.

Parameters:
name - the name.
Since:
6.1.0

setPermissions

public void setPermissions(String permissions)
Sets value of needed permissions when registering application to an account in this social network.

Parameters:
permissions - the permissions.
Since:
6.1.0

setApplications

public void setApplications(Set<SocialNetworkApplication> applications)
Sets the applications.

Parameters:
applications - the applications value to set.
Since:
6.1.0

addApplication

public SocialNetworkApplication addApplication(String consumerKey,
                                               String consumerSecret,
                                               boolean enabled,
                                               String name)
Adds an application to this social network.

Parameters:
consumerKey - the consumer key.
consumerSecret - the consumer secret.
enabled - the application is enabled
name - the name.
Returns:
the added application.
Since:
6.1.0

toString

public String toString()
Overrides:
toString in class Object


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.