/*
* Copyright 2010 the original author or authors.
*
* 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.springsource.greenhouse.develop;
import org.hibernate.validator.constraints.NotEmpty;
/**
* Model backing the "Register New App" and "Update Existing App" forms.
* @author Keith Donald
*/
public class AppForm {
@NotEmpty
private String name;
@NotEmpty
private String description;
private String organization;
private String website;
private String callbackUrl;
/**
* The name of the app.
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* A short description of the app.
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
* The organization that publishes the app.
*/
public String getOrganization() {
return organization;
}
public void setOrganization(String organization) {
this.organization = organization;
}
/**
* The website you can visit to get more information on the app.
*/
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
/**
* The URL members should be redirected back to after they connect to the app.
*/
public String getCallbackUrl() {
return callbackUrl;
}
public void setCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
}
}