Class GeneralSubscription
- java.lang.Object
-
- com.carfey.ops.api.bean.notification.GeneralSubscription
-
public class GeneralSubscription extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GeneralSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesToAllJobs()Indicates if the subscription applies to all jobs (i.e.CategorygetCategory()Not all categories are supported.java.lang.StringgetCreatedBy()com.carfey.jdk.lang.DateTimegetCreatedDate()JobgetJob()java.lang.StringgetLastUpdatedBy()com.carfey.jdk.lang.DateTimegetLastUpdatedDate()LogLevelgetLevel()Not all LEVELS are supported.booleanisActive()voidsetActive(boolean active)voidsetCategory(Category category)SeegetCategory()for valid values.voidsetCreatedBy(java.lang.String createdBy)voidsetCreatedDate(com.carfey.jdk.lang.DateTime createdDate)voidsetJob(Job job)voidsetLastUpdatedBy(java.lang.String lastUpdatedBy)voidsetLastUpdatedDate(com.carfey.jdk.lang.DateTime lastUpdatedDate)voidsetLevel(LogLevel level)SeegetLevel()for valid values.java.lang.StringtoString()GeneralSubscriptionwithActive(boolean active)GeneralSubscriptionwithCategory(Category category)SeegetCategory()for valid values.GeneralSubscriptionwithCreatedBy(java.lang.String createdBy)GeneralSubscriptionwithCreatedDate(com.carfey.jdk.lang.DateTime createdDate)GeneralSubscriptionwithJob(Job job)GeneralSubscriptionwithLastUpdatedBy(java.lang.String lastUpdatedBy)GeneralSubscriptionwithLastUpdatedDate(com.carfey.jdk.lang.DateTime lastUpdatedDate)GeneralSubscriptionwithLevel(LogLevel level)SeegetLevel()for valid values.
-
-
-
Method Detail
-
getCategory
public Category getCategory()
Not all categories are supported. Only JOB, JOB_CHAIN, JOB_CONFIG, JOB_RECOVERY, LICENCE, QUEUE, SYSTEM_PARAMETER and null are valid values.- Returns:
- category
-
setCategory
public void setCategory(Category category)
SeegetCategory()for valid values.- Parameters:
category- for subscription
-
withCategory
public GeneralSubscription withCategory(Category category)
SeegetCategory()for valid values.- Parameters:
category- for subscription- Returns:
- this, suitable for chaining
-
getLevel
public LogLevel getLevel()
Not all LEVELS are supported. Only ERROR, WARNING AND INFO are valid values.- Returns:
- log level
-
setLevel
public void setLevel(LogLevel level)
SeegetLevel()for valid values.- Parameters:
level- log level
-
withLevel
public GeneralSubscription withLevel(LogLevel level)
SeegetLevel()for valid values.- Parameters:
level- log level- Returns:
- this, suitable for chaining
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
withActive
public GeneralSubscription withActive(boolean active)
-
getJob
public Job getJob()
-
setJob
public void setJob(Job job)
-
withJob
public GeneralSubscription withJob(Job job)
-
getCreatedBy
public java.lang.String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
-
withCreatedBy
public GeneralSubscription withCreatedBy(java.lang.String createdBy)
-
getCreatedDate
public com.carfey.jdk.lang.DateTime getCreatedDate()
-
setCreatedDate
public void setCreatedDate(com.carfey.jdk.lang.DateTime createdDate)
-
withCreatedDate
public GeneralSubscription withCreatedDate(com.carfey.jdk.lang.DateTime createdDate)
-
getLastUpdatedBy
public java.lang.String getLastUpdatedBy()
-
setLastUpdatedBy
public void setLastUpdatedBy(java.lang.String lastUpdatedBy)
-
withLastUpdatedBy
public GeneralSubscription withLastUpdatedBy(java.lang.String lastUpdatedBy)
-
getLastUpdatedDate
public com.carfey.jdk.lang.DateTime getLastUpdatedDate()
-
setLastUpdatedDate
public void setLastUpdatedDate(com.carfey.jdk.lang.DateTime lastUpdatedDate)
-
withLastUpdatedDate
public GeneralSubscription withLastUpdatedDate(com.carfey.jdk.lang.DateTime lastUpdatedDate)
-
appliesToAllJobs
public boolean appliesToAllJobs()
Indicates if the subscription applies to all jobs (i.e. not a specific job).- Returns:
- true if this subscription does not apply to any specific job
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-