Class SocialNetworkAccount

  • All Implemented Interfaces:
    java.io.Serializable

    public class SocialNetworkAccount
    extends java.lang.Object
    implements java.io.Serializable
    Represents the account from which messages will be published to a social
    Since:
    6.1.0
    Version:
    $Revision$ $Date$
    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
      SocialNetworkMessage addMessage​(java.lang.String messageContent, java.util.Date publishDate)
      Adds a message using this account.
      SocialNetworkApplication getApplication()
      Returns the application to which this account will publish to.
      java.lang.String getAuthenticationResponse()
      Returns the authentication response sent by validation/authorization process.
      java.lang.String getId()
      Returns the account's id.
      java.lang.String getName()
      Returns the name.
      java.lang.String getPublicationDestination()
      Returns the publicationDestination path this application uses when publishing in this social network.
      java.lang.String getPublicationToken()
      Returns the publicationToken this application uses when publishing in this social network.
      java.lang.String getServiceInstanceId()
      Returns the identifier of the service instance this account belongs to.
      boolean isAllServiceInstances()
      Returns the isAllServiceInstances.
      boolean isEnabled()
      Returns the enabled.
      void setAllServiceInstances​(boolean isAllServiceInstances)
      Sets the isAllServiceInstances.
      void setApplication​(SocialNetworkApplication application)
      Set the application to which this account will publish to.
      void setAuthenticationResponse​(java.lang.String authenticationResponse)
      Set the authentication response sent by validation/authorization process.
      void setEnabled​(boolean enabled)
      Sets the enabled.
      void setName​(java.lang.String name)
      Sets the name.
      void setPublicationDestination​(java.lang.String publicationDestination)
      Set the publicationDestination for this application to publish in this social network.
      void setPublicationToken​(java.lang.String publicationToken)
      Set the publicationToken this application uses when publishing in this social network.
      void setServiceInstanceId​(java.lang.String serviceInstanceId)
      Sets the identifier of the service instance this account 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
    • 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 java.lang.String getAuthenticationResponse()
        Returns the authentication response sent by validation/authorization process.
        Since:
        6.1.0
      • getId

        public java.lang.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 java.lang.String getPublicationDestination()
        Returns the publicationDestination path this application uses when publishing in this social network.
        Since:
        8.1.0
      • getPublicationToken

        public java.lang.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​(java.lang.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​(java.lang.String messageContent,
                                               java.util.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 java.lang.String getName()
        Returns the name.
        Returns:
        the name
        Since:
        6.1.0
      • setName

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

        public java.lang.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​(java.lang.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​(java.lang.String publicationDestination)
        Set the publicationDestination for this application to publish in this social network.
        Parameters:
        consumerSecret - the consumer secret.
        Since:
        8.1.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setPublicationToken

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