runtimes view
This commit is contained in:
parent
61e94880b2
commit
85930218ba
14 changed files with 259 additions and 88 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package org.chtijbug.drools.proxy.persistence.json;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class KeyProject implements Serializable {
|
||||
|
||||
private String spaceName;
|
||||
|
||||
private String name;
|
||||
|
||||
public KeyProject(){}
|
||||
|
||||
public KeyProject(String spaceName, String name) {
|
||||
this.spaceName = spaceName;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSpaceName() {
|
||||
return spaceName;
|
||||
}
|
||||
|
||||
public void setSpaceName(String spaceName) {
|
||||
this.spaceName = spaceName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return spaceName+"-"+name;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
package org.chtijbug.drools.proxy.persistence.model;
|
||||
|
||||
import org.bson.types.ObjectId;
|
||||
import org.chtijbug.drools.proxy.persistence.json.KeyProject;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.index.Indexed;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
|
@ -17,18 +18,12 @@ public class ProjectPersist implements Serializable {
|
|||
|
||||
public static final String Deployable="Déployable";
|
||||
|
||||
@Id
|
||||
private String id=new ObjectId().toString();
|
||||
|
||||
@Indexed
|
||||
private String deploymentName;
|
||||
|
||||
@Id
|
||||
@Indexed
|
||||
private String projectName;
|
||||
|
||||
private String spaceName;
|
||||
|
||||
private String oldName;
|
||||
private KeyProject projectName;
|
||||
|
||||
private String mainClass;
|
||||
|
||||
|
|
@ -50,14 +45,6 @@ public class ProjectPersist implements Serializable {
|
|||
|
||||
public ProjectPersist(){}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeploymentName() {
|
||||
return deploymentName;
|
||||
}
|
||||
|
|
@ -66,11 +53,11 @@ public class ProjectPersist implements Serializable {
|
|||
this.deploymentName = deploymentName;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
public KeyProject getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
public void setProjectName(KeyProject projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
|
|
@ -102,18 +89,6 @@ public class ProjectPersist implements Serializable {
|
|||
return processID;
|
||||
}
|
||||
|
||||
public String getSpaceName() {
|
||||
return spaceName;
|
||||
}
|
||||
|
||||
public void setSpaceName(String spaceName) {
|
||||
this.spaceName = spaceName;
|
||||
}
|
||||
|
||||
public String getOldName() {
|
||||
return oldName;
|
||||
}
|
||||
|
||||
public String getContainerID() {
|
||||
return containerID;
|
||||
}
|
||||
|
|
@ -122,10 +97,6 @@ public class ProjectPersist implements Serializable {
|
|||
this.containerID = containerID;
|
||||
}
|
||||
|
||||
public void setOldName(String oldName) {
|
||||
this.oldName = oldName;
|
||||
}
|
||||
|
||||
public void setProcessID(String processID) {
|
||||
this.processID = processID;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package org.chtijbug.drools.proxy.persistence.repository;
|
||||
|
||||
import org.chtijbug.drools.proxy.persistence.json.KeyProject;
|
||||
import org.chtijbug.drools.proxy.persistence.model.ProjectPersist;
|
||||
import org.chtijbug.drools.proxy.persistence.model.RuntimePersist;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
|
@ -10,7 +11,7 @@ import java.util.List;
|
|||
@Repository
|
||||
public interface ProjectRepository extends MongoRepository<ProjectPersist, String> {
|
||||
|
||||
public ProjectPersist findByProjectName(String projectName);
|
||||
public ProjectPersist findByProjectName(KeyProject projectName);
|
||||
public ProjectPersist findByDeploymentName(String deploymentName);
|
||||
public List<ProjectPersist> findByServerName(String serverName);
|
||||
public List<ProjectPersist> findByServerNameAndDeploymentName(String serverName,String deploymentName);
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue