com.flowcentraltech.flowcentral.notification.entities.NotificationInbox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flowcentral-notification Show documentation
Show all versions of flowcentral-notification Show documentation
Flowcentral Notification Module
/*
* Copyright 2021-2024 FlowCentral Technologies Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.flowcentraltech.flowcentral.notification.entities;
import com.flowcentraltech.flowcentral.common.entities.BaseAuditTenantEntity;
import com.flowcentraltech.flowcentral.notification.constants.NotificationInboxStatus;
import com.tcdng.unify.core.annotation.Column;
import com.tcdng.unify.core.annotation.ColumnType;
import com.tcdng.unify.core.annotation.ForeignKey;
import com.tcdng.unify.core.annotation.ListOnly;
import com.tcdng.unify.core.annotation.Table;
/**
* Notification inbox entity.
*
* @author FlowCentral Technologies Limited
* @since 1.0
*/
@Table(name = "FC_NOTIFINBOX")
public class NotificationInbox extends BaseAuditTenantEntity {
@ForeignKey(name = "REC_ST")
private NotificationInboxStatus status;
@Column(name = "NOTIF_SUBJECT", length = 96)
private String subject;
@Column(length = 96, nullable = true)
private String actionLink;
@Column(length = 96, nullable = true)
private String actionTarget;
@Column(length = 64)
private String userLoginId;
@Column(type = ColumnType.CLOB, nullable = true)
private String message;
@ListOnly(key = "status", property = "description")
private String statusDesc;
@Override
public String getDescription() {
return subject;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public NotificationInboxStatus getStatus() {
return status;
}
public void setStatus(NotificationInboxStatus status) {
this.status = status;
}
public String getActionLink() {
return actionLink;
}
public void setActionLink(String actionLink) {
this.actionLink = actionLink;
}
public String getActionTarget() {
return actionTarget;
}
public void setActionTarget(String actionTarget) {
this.actionTarget = actionTarget;
}
public String getUserLoginId() {
return userLoginId;
}
public void setUserLoginId(String userLoginId) {
this.userLoginId = userLoginId;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getStatusDesc() {
return statusDesc;
}
public void setStatusDesc(String statusDesc) {
this.statusDesc = statusDesc;
}
}