All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.fd.fp.model.SubmittedMetadata Maven / Gradle / Ivy

/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2014 Adobe Systems Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/

package com.adobe.fd.fp.model;

import org.apache.sling.commons.json.JSONException;
import org.apache.sling.commons.json.JSONObject;

public class SubmittedMetadata extends DraftMetadata {
	/** Serial Version UID 
	 * 
	 */
	private static final long serialVersionUID = 7575526369393323817L;

	public static final String STATUS = "status";
	
	public static final String SUBMIT_ID = "submitID";
	
	private String status;
	
	private String submitID;
	
	public SubmittedMetadata () {
		super();
	}
	
	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	public JSONObject getJSONObject () throws JSONException {
		JSONObject submitGuideJson = super.getJSONObject();
		submitGuideJson.put(SUBMIT_ID,getSubmitID());
		if (status != null) {
			submitGuideJson.put(STATUS, status);
		}
		return submitGuideJson;
	}
	
	public String getSubmitID() {
		return submitID;
	}

	public void setSubmitID(String submitID) {
		this.submitID = submitID;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy