no.digipost.api.client.representations
Class Message

java.lang.Object
  extended by no.digipost.api.client.representations.Message
Direct Known Subclasses:
Invoice

public class Message
extends Object


Field Summary
protected  AuthenticationLevel authenticationLevel
           
protected  String messageId
           
protected  Boolean preEncrypt
           
protected  RecipientIdentification recipient
           
protected  Long senderId
           
protected  SensitivityLevel sensitivityLevel
           
protected  SmsNotification smsNotification
           
protected  String subject
           
 
Constructor Summary
Message(String messageId, PrintDetails printDetails)
           
Message(String messageId, String subject, DigipostAddress digipostAdress, SmsNotification smsVarsling, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
           
Message(String messageId, String subject, NameAndAddress nameAndAddress, SmsNotification smsVarsling, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
           
Message(String messageId, String subject, PersonalIdentificationNumber id, SmsNotification smsVarsling, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
           
Message(String messageId, String subject, RecipientIdentification recipient, SmsNotification smsVarsling, AuthenticationLevel authenticationLevel, SensitivityLevel sensitivityLevel)
           
 
Method Summary
 AuthenticationLevel getAuthenticationLevel()
           
 String getMessageId()
           
 RecipientIdentification getRecipient()
           
 SensitivityLevel getSensitivityLevel()
           
 SmsNotification getSmsNotification()
           
 String getSubject()
           
 boolean hasSubject()
           
 boolean isDirectPrint()
           
 boolean isPreEncrypt()
           
 boolean isSameMessageAs(Message message)
           
 void setPreEncrypt()
           
 void setPreEncrypt(boolean preEncrypt)
           
 void setSenderId(long senderId)
          Only neccessary when sending on behalf of another user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageId

protected String messageId

senderId

protected Long senderId

preEncrypt

protected Boolean preEncrypt

subject

protected String subject

recipient

protected RecipientIdentification recipient

smsNotification

protected SmsNotification smsNotification

authenticationLevel

protected AuthenticationLevel authenticationLevel

sensitivityLevel

protected SensitivityLevel sensitivityLevel
Constructor Detail

Message

public Message(String messageId,
               String subject,
               PersonalIdentificationNumber id,
               SmsNotification smsVarsling,
               AuthenticationLevel authenticationLevel,
               SensitivityLevel sensitivityLevel)

Message

public Message(String messageId,
               String subject,
               DigipostAddress digipostAdress,
               SmsNotification smsVarsling,
               AuthenticationLevel authenticationLevel,
               SensitivityLevel sensitivityLevel)

Message

public Message(String messageId,
               String subject,
               NameAndAddress nameAndAddress,
               SmsNotification smsVarsling,
               AuthenticationLevel authenticationLevel,
               SensitivityLevel sensitivityLevel)

Message

public Message(String messageId,
               String subject,
               RecipientIdentification recipient,
               SmsNotification smsVarsling,
               AuthenticationLevel authenticationLevel,
               SensitivityLevel sensitivityLevel)

Message

public Message(String messageId,
               PrintDetails printDetails)
Method Detail

getSubject

public String getSubject()

hasSubject

public boolean hasSubject()

getSmsNotification

public SmsNotification getSmsNotification()

getAuthenticationLevel

public AuthenticationLevel getAuthenticationLevel()

getSensitivityLevel

public SensitivityLevel getSensitivityLevel()

getRecipient

public RecipientIdentification getRecipient()

getMessageId

public String getMessageId()

isPreEncrypt

public boolean isPreEncrypt()

isSameMessageAs

public boolean isSameMessageAs(Message message)

setPreEncrypt

public void setPreEncrypt()

setSenderId

public void setSenderId(long senderId)
Only neccessary when sending on behalf of another user. In this case senderId must be the party you are sending on behalf of. Your own user id should be set in the http header X-Digipost-UserId.


setPreEncrypt

public void setPreEncrypt(boolean preEncrypt)

isDirectPrint

public boolean isDirectPrint()


Copyright © 2012 Digipost Open Source. All Rights Reserved.