org.osivia.portal.api.notifications
Class Notifications

java.lang.Object
  extended by org.osivia.portal.api.notifications.Notifications

public final class Notifications
extends java.lang.Object

Notifications bean.

Author:
Cédric Krommenhoek

Constructor Summary
Notifications(NotificationsType type)
          Constructor.
Notifications(NotificationsType type, int duration)
          Contructor with duration.
 
Method Summary
 void addMessage(java.lang.String message)
          Add single message to messages list.
 void addMessages(java.util.List<java.lang.String> messages)
          Add multiple messages to messages list
 long getCreationTime()
          Getter for creationTime.
 java.lang.Long getErrorCode()
          Getter for errorCode.
 long getExpirationTime()
          Getter for expirationTime.
 java.util.List<java.lang.String> getMessages()
          Getter for messages.
 NotificationsType getType()
          Getter for type.
 void setErrorCode(java.lang.Long errorCode)
          Setter for errorCode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notifications

public Notifications(NotificationsType type)
Constructor.

Parameters:
type - notifications type

Notifications

public Notifications(NotificationsType type,
                     int duration)
Contructor with duration.

Parameters:
type - notifications type
duration - duration, in millisecond
Method Detail

addMessage

public void addMessage(java.lang.String message)
Add single message to messages list.

Parameters:
message - message

addMessages

public void addMessages(java.util.List<java.lang.String> messages)
Add multiple messages to messages list

Parameters:
messages - messages

getType

public NotificationsType getType()
Getter for type.

Returns:
the type

getMessages

public java.util.List<java.lang.String> getMessages()
Getter for messages.

Returns:
the messages

getCreationTime

public long getCreationTime()
Getter for creationTime.

Returns:
the creationTime

getExpirationTime

public long getExpirationTime()
Getter for expirationTime.

Returns:
the expirationTime

getErrorCode

public java.lang.Long getErrorCode()
Getter for errorCode.

Returns:
the errorCode

setErrorCode

public void setErrorCode(java.lang.Long errorCode)
Setter for errorCode.

Parameters:
errorCode - the errorCode to set


Copyright © 2014. All Rights Reserved.