Package com.day.cq.mcm.campaign
Interface NewsletterStatus
-
public interface NewsletterStatusReflects the current status of a newsletter.
Implementations should be immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static intFAILEDInternal status - newsletter activation or publication to Adobe Campaign failedstatic intMISSINGInternal status - status could not be determined because the delivery is missing on Adobe Campaignstatic intPREPARINGInternal status - delivery is being prepared for publishing to Adobe Campaignstatic intUNAVAILABLEInternal status - no status available (not yet published to Adobe Campaign)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetStatusCode()Gets the status as a numeric code.java.lang.StringgetStatusMessage()Gets an (internationalized) variant of the status in a human-readable format.java.lang.StringgetStatusString()Gets the status as a String code.
-
-
-
Field Detail
-
UNAVAILABLE
static final int UNAVAILABLE
Internal status - no status available (not yet published to Adobe Campaign)- See Also:
- Constant Field Values
-
FAILED
static final int FAILED
Internal status - newsletter activation or publication to Adobe Campaign failed- See Also:
- Constant Field Values
-
MISSING
static final int MISSING
Internal status - status could not be determined because the delivery is missing on Adobe Campaign- See Also:
- Constant Field Values
-
PREPARING
static final int PREPARING
Internal status - delivery is being prepared for publishing to Adobe Campaign- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Gets the status as a numeric code.- Returns:
- The status (numeric)
-
getStatusString
java.lang.String getStatusString()
Gets the status as a String code.- Returns:
- The status (textual)
-
getStatusMessage
java.lang.String getStatusMessage()
Gets an (internationalized) variant of the status in a human-readable format.- Returns:
- The human-readable status
-
-