Class SocialNetworkAccount

  • All Implemented Interfaces:
    Serializable

    public class SocialNetworkAccount
    extends Object
    implements Serializable
    Represents the account from which messages will be published to a social
    Since:
    6.1.0
    Version:
    $Revision: 17594 $ $Date: 2015-07-17 11:22:41 -0300 (Fri, 17 Jul 2015) $
    See Also:
    Serialized Form
    • Constructor Detail

      • SocialNetworkAccount

        public SocialNetworkAccount()
        Constructor for JPA.
        Since:
        6.1.0
    • Method Detail

      • getApplication

        public SocialNetworkApplication getApplication()
        Returns the application to which this account will publish to.
        Since:
        6.1.0
      • getAuthenticationResponse

        public String getAuthenticationResponse()
        Returns the authentication response sent by validation/authorization process.
        Since:
        6.1.0
      • getId

        public String getId()
        Returns the account's id.
        Since:
        6.1.0
      • isEnabled

        public boolean isEnabled()
        Returns the enabled.
        Returns:
        the enabled
        Since:
        6.1.0
      • isAllServiceInstances

        public boolean isAllServiceInstances()
        Returns the isAllServiceInstances.
        Returns:
        the isAllServiceInstances
        Since:
        6.1.0
      • getPublicationDestination

        public String getPublicationDestination()
        Returns the publicationDestination path this application uses when publishing in this social network.
        Since:
        8.1.0
      • getPublicationToken

        public String getPublicationToken()
        Returns the publicationToken this application uses when publishing in this social network.
        Since:
        8.1.0
      • setApplication

        public void setApplication​(SocialNetworkApplication application)
        Set the application to which this account will publish to.
        Parameters:
        application - the application.
        Since:
        6.1.0
      • setAuthenticationResponse

        public void setAuthenticationResponse​(String authenticationResponse)
        Set the authentication response sent by validation/authorization process.
        Parameters:
        authenticationResponse - the authentication response.
        Since:
        6.1.0
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets the enabled.
        Parameters:
        enabled - the enabled value to set.
        Since:
        6.1.0
      • setAllServiceInstances

        public void setAllServiceInstances​(boolean isAllServiceInstances)
        Sets the isAllServiceInstances.
        Parameters:
        isAllServiceInstances - the isAllServiceInstances value to set.
        Since:
        6.1.0
      • addMessage

        public SocialNetworkMessage addMessage​(String messageContent,
                                               Date publishDate)
        Adds a message using this account.
        Parameters:
        messageContent - the message content.
        publishDate - the message publish date.
        Returns:
        the created message.
        Since:
        6.1.0
      • getName

        public String getName()
        Returns the name.
        Returns:
        the name
        Since:
        6.1.0
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the name value to set.
        Since:
        6.1.0
      • getServiceInstanceId

        public String getServiceInstanceId()
        Returns the identifier of the service instance this account belongs to.
        Returns:
        the identifier of the service instance this account belongs to.
        Since:
        6.1.0
      • setServiceInstanceId

        public void setServiceInstanceId​(String serviceInstanceId)
        Sets the identifier of the service instance this account belongs to.
        Parameters:
        serviceInstanceId - the identifier of the service instance this account belongs to.
        Since:
        6.1.0
      • setPublicationDestination

        public void setPublicationDestination​(String publicationDestination)
        Set the publicationDestination for this application to publish in this social network.
        Parameters:
        consumerSecret - the consumer secret.
        Since:
        8.1.0
      • setPublicationToken

        public void setPublicationToken​(String publicationToken)
        Set the publicationToken this application uses when publishing in this social network.
        Parameters:
        publicationToken - the token
        Since:
        8.1.0