Class SocialNetworkApplication

  • All Implemented Interfaces:
    java.io.Serializable

    public class SocialNetworkApplication
    extends java.lang.Object
    implements java.io.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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENTITY_NAME
      This entity name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SocialNetworkAccount addAccount​(boolean enabled, boolean isAllServiceInstances)
      Adds an account to this application.
      java.util.Set<SocialNetworkAccount> getAccounts()
      Returns the accounts.
      java.lang.String getConsumerKey()
      Returns the consumerKey for this application in this network.
      java.lang.String getConsumerSecret()
      Returns the consumerSecret token to authenticate this application in this social network.
      java.lang.String getId()
      Returns the application's id.
      java.lang.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​(java.util.Set<SocialNetworkAccount> accounts)
      Sets the accounts.
      void setConsumerKey​(java.lang.String consumerKey)
      Sets the consumerKey for this application in this social network.
      void setConsumerSecret​(java.lang.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​(java.lang.String name)
      Sets the name of this application.
      void setSocialNetwork​(SocialNetwork socialNetwork)
      Sets the social network the application belongs to.
      java.lang.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 java.lang.String ENTITY_NAME
        This entity name.
        Since:
        6.1.0
        See Also:
        Constant Field Values
    • Method Detail

      • getConsumerKey

        public java.lang.String getConsumerKey()
        Returns the consumerKey for this application in this network.
        Since:
        6.1.0
      • getConsumerSecret

        public java.lang.String getConsumerSecret()
        Returns the consumerSecret token to authenticate this application in this social network.
        Since:
        6.1.0
      • getId

        public java.lang.String getId()
        Returns the application's id.
        Since:
        6.1.0
      • getName

        public java.lang.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 java.util.Set<SocialNetworkAccount> getAccounts()
        Returns the accounts.
        Returns:
        the accounts
        Since:
        6.1.0
      • setConsumerKey

        public void setConsumerKey​(java.lang.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​(java.lang.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​(java.lang.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​(java.util.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object