com.jelastic.api.system.persistence.Project Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 845256f43a72ae434951447b67e839c4*/
package com.jelastic.api.system.persistence;
import com.jelastic.api.development.response.interfaces.ArrayItem;
import java.util.Date;
import java.util.Set;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public class Project extends ArrayItem {
public static final String IS_DELETED_FILTER = "isProjectDeletedFilter";
public static final String IS_ACTIVE_FILTER = "isProjectActiveFilter";
public static final String NAME = "name";
public static final String DESCRIPTION = "description";
public static final String CREATED_ON = "createdOn";
public static final String UID = "uid";
public static final String IS_DELETED = "isDeleted";
public static final String IS_DEFAULT = "isDefault";
public static final String DEFAULT_NAME = "Default";
public static final String DEFAULT_DESCRIPTION = "Default project";
public static final String UNQ_UID_NAME = "unq_uid_name";
private boolean isDeleted;
private String name;
private String description;
private Date createdOn = new Date();
private int uid;
private boolean isDefault;
private Set engineProjects;
public Project() {
}
public static Project createDefault(int uid) {
Project p = new Project();
p.setDefault(true);
p.setName(DEFAULT_NAME);
p.setDescription(DEFAULT_DESCRIPTION);
p.setUid(uid);
return p;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreatedOn() {
return createdOn;
}
public void setCreatedOn(Date createdOn) {
this.createdOn = createdOn;
}
public int getUid() {
return uid;
}
public void setUid(int uid) {
this.uid = uid;
}
public boolean isDeleted() {
return isDeleted;
}
public void setDeleted(boolean deleted) {
isDeleted = deleted;
}
public Set getEngineProjects() {
return engineProjects;
}
public void setEngineProjects(Set engineProjects) {
this.engineProjects = engineProjects;
}
public boolean isDefault() {
return isDefault;
}
public void setDefault(boolean aDefault) {
isDefault = aDefault;
}
@Override
public String toString() {
return "[" + uid + ":" + name + ":" + uid + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy