lumis.socialnetworkintegration
Class SocialNetworkAccount

Package class diagram package SocialNetworkAccount
java.lang.Object
  extended by lumis.socialnetworkintegration.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
See Also:
Serialized Form

Field Summary
static String ENTITY_NAME
          This entity name.
 
Constructor Summary
SocialNetworkAccount()
          Constructor for JPA.
 
Method Summary
 SocialNetworkMessage addMessage(String messageContent, Date publishDate)
          Adds a message using this account.
 SocialNetworkApplication getApplication()
          Returns the application to which this account will publish to.
 String getAuthenticationResponse()
          Returns the authentication response sent by validation/authorization process.
 String getId()
          Returns the account's id.
 String getName()
          Returns the name.
 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(String authenticationResponse)
          Set the authentication response sent by validation/authorization process.
 void setEnabled(boolean enabled)
          Sets the enabled.
 void setName(String name)
          Sets the name.
 void setServiceInstanceId(String serviceInstanceId)
          Sets the identifier of the service instance this account 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
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

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

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.