@@ -0,0 +1,2454 @@
+/**%0A * Copyright 2016, RadiantBlue Technologies, Inc.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *   http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A **/%0Apackage model.data.deployment;%0A%0Aimport io.swagger.annotations.ApiModelProperty;%0A%0Aimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0Aimport com.fasterxml.jackson.annotation.JsonInclude;%0Aimport com.fasterxml.jackson.annotation.JsonInclude.Include;%0A%0A/**%0A * Basic container object a Deployment Group ID.%0A * %0A * %3Cp%3E%0A * There is a limitation of GeoServer such that Layer Groups can only be created%0A * if there is at least one valid layer populated at the time of creation.%0A * However, for Piazza use-cases, we want to allow users to grab a unique ID for%0A * a Layer Group before they have created any actual layers. To support this%0A * goal, we use this DeploymentGroup model, as persisted in Mongo, to maintain a%0A * connection between a GUID delivered to a user, and a Layer Group (once%0A * created) in GeoServer. The user only ever receives the GUID as held by this%0A * DeploymentGroup object. In that way, we can deliver some placeholder ID to%0A * the user %3Cb%3Ebefore%3C/b%3E the actual Layer Group is ready to be created on%0A * GeoServer.%0A * %3C/p%3E%0A * %0A * @author Patrick.Doody%0A *%0A */%0A@JsonInclude(Include.NON_NULL)%0A@JsonIgnoreProperties(ignoreUnknown = true)%0Apublic class DeploymentGroup %7B%0A%09@ApiModelProperty(value = %22The unique identifier for this Deployment Group.%22, required = true)%0A%09public String deploymentGroupId;%0A%0A%09@ApiModelProperty(value = %22The user who created this Deployment Group.%22, required = true)%0A%09public String createdBy;%0A%0A%09/**%0A%09 * Creates a new Deployment Group.%0A%09 */%0A%09public DeploymentGroup() %7B%0A%0A%09%7D%0A%0A%09/**%0A%09 * Creates a new Deployment Group.%0A%09 * %0A%09 * @param id%0A%09 *            The deployment group ID for this object%0A%09 * @param createdBy%0A%09 *            The user who created this deployment group.%0A%09 */%0A%09public DeploymentGroup(String id, String createdBy) %7B%0A%09%09this.deploymentGroupId = id;%0A%09%09this.createdBy = createdBy;%0A%09%7D%0A%7D%0A

Add model for Deployment Group