Class Notification
- java.lang.Object
-
- com.adobe.cq.testing.client.notification.Notification
-
public class Notification extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Date
date
protected String
id
protected boolean
isRead
protected boolean
isUserMessage
protected String
modification
static String
NOTIFICATION_COMMAND_APPROVE
static String
NOTIFICATION_COMMAND_DELETE
protected String
path
protected String
user
-
Constructor Summary
Constructors Constructor Description Notification(CQClient client, String id, String modification, String path, Date date, boolean isRead, boolean isUserMessage, String user)
Notification(com.fasterxml.jackson.databind.JsonNode jsonNotification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Date
getDate()
String
getId()
String
getModification()
String
getPath()
String
getUser()
int
hashCode()
boolean
isRead()
boolean
isUserMessage()
void
setDate(Date date)
void
setId(String id)
void
setModification(String modification)
void
setPath(String path)
void
setRead(boolean isRead)
void
setUser(String user)
void
setUserMessage(boolean isUserMessage)
-
-
-
Field Detail
-
NOTIFICATION_COMMAND_APPROVE
public static final String NOTIFICATION_COMMAND_APPROVE
- See Also:
- Constant Field Values
-
NOTIFICATION_COMMAND_DELETE
public static final String NOTIFICATION_COMMAND_DELETE
- See Also:
- Constant Field Values
-
id
protected String id
-
modification
protected String modification
-
path
protected String path
-
date
protected Date date
-
isRead
protected boolean isRead
-
isUserMessage
protected boolean isUserMessage
-
user
protected String user
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the id
-
setId
public void setId(String id)
- Parameters:
id
- the id to set
-
getModification
public String getModification()
- Returns:
- the modification
-
setModification
public void setModification(String modification)
- Parameters:
modification
- the modification to set
-
getPath
public String getPath()
- Returns:
- the path
-
setPath
public void setPath(String path)
- Parameters:
path
- the path to set
-
getDate
public Date getDate()
- Returns:
- the date
-
setDate
public void setDate(Date date)
- Parameters:
date
- the date to set
-
isRead
public boolean isRead()
- Returns:
- the isRead
-
setRead
public void setRead(boolean isRead)
- Parameters:
isRead
- the isRead to set
-
isUserMessage
public boolean isUserMessage()
- Returns:
- the isUserMessage
-
setUserMessage
public void setUserMessage(boolean isUserMessage)
- Parameters:
isUserMessage
- the isUserMessage to set
-
getUser
public String getUser()
- Returns:
- the user
-
setUser
public void setUser(String user)
- Parameters:
user
- the user to set
-
-