Class 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
    Version:
    $Revision: 16392 $ $Date: 2014-08-06 11:40:08 -0300 (Wed, 06 Aug 2014) $
    See Also:
    Serialized Form
    • 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