lumis.socialnetworkintegration
Class SocialNetworkApplication

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

public class SocialNetworkApplication
extends Object
implements Serializable

Represents a specific application/portal in a social network.

Since:
6.1.0
See Also:
Serialized Form

Field Summary
static String ENTITY_NAME
          This entity name.
 
Method Summary
 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()
           
 
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
Method Detail

getConsumerKey

public String getConsumerKey()
Returns the consumerKey for this application in this network.

Since:
6.1.0

getConsumerSecret

public String getConsumerSecret()
Returns the consumerSecret token to authenticate this application in this social network.

Since:
6.1.0

getId

public String getId()
Returns the application's id.

Since:
6.1.0

getName

public String getName()
Returns the name of the application.

Since:
6.1.0

getSocialNetwork

public SocialNetwork getSocialNetwork()
Returns the social network the application is associated to.

Since:
6.1.0

isEnabled

public boolean isEnabled()
Retuns if the application is enabled.

Since:
6.1.0

getAccounts

public Set<SocialNetworkAccount> getAccounts()
Returns the accounts.

Returns:
the accounts
Since:
6.1.0

setConsumerKey

public void setConsumerKey(String consumerKey)
Sets the consumerKey for this application in this social network.

Parameters:
consumerKey - the consumer key.
Since:
6.1.0

setConsumerSecret

public void setConsumerSecret(String consumerSecret)
Set the consumerSecret for this application to authenticate in this social network.

Parameters:
consumerSecret - the consumer secret.
Since:
6.1.0

setEnabled

public void setEnabled(boolean enabled)
Sets if the application is enabled.

Parameters:
enabled - if the application is enabled.
Since:
6.1.0

setName

public void setName(String name)
Sets the name of this application.

Parameters:
name - the name.
Since:
6.1.0

setSocialNetwork

public void setSocialNetwork(SocialNetwork socialNetwork)
Sets the social network the application belongs to.

Parameters:
socialNetwork - the social network.
Since:
6.1.0

setAccounts

public void setAccounts(Set<SocialNetworkAccount> accounts)
Sets the accounts.

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

addAccount

public SocialNetworkAccount addAccount(boolean enabled,
                                       boolean isAllServiceInstances)
Adds an account to this application.

Parameters:
enabled - the account is enabled.
isAllServiceInstances - the account can publish to all service instances.
Returns:
the created account.
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.