Lucio Lelii 2016-10-03 09:25:29 +00:00
parent 5385c20032
commit 973b95aa99
7 changed files with 36 additions and 24 deletions

View File

@ -1,2 +1,6 @@
${gcube.license} gCube System - License
------------------------------------------------------------
The gCube/gCore software is licensed as Free Open Source software conveying to the EUPL (http://ec.europa.eu/idabc/eupl).
The software and documentation is provided by its authors/distributors "as is" and no expressed or
implied warranty is given for its use, quality or fitness for a particular case.

Binary file not shown.

View File

@ -8,7 +8,7 @@
</parent> </parent>
<groupId>org.gcube.resources</groupId> <groupId>org.gcube.resources</groupId>
<artifactId>common-gcore-resources</artifactId> <artifactId>common-gcore-resources</artifactId>
<version>1.3.1-SNAPSHOT</version> <version>1.3.2-SNAPSHOT</version>
<scm> <scm>
<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</connection> <connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</connection>

View File

@ -20,6 +20,11 @@ public class GenericResource extends Resource {
this.type(Type.GENERIC); this.type(Type.GENERIC);
} }
public GenericResource(String id) {
this();
this.setId(id);
}
@XmlElementRef @XmlElementRef
private Profile profile; private Profile profile;

View File

@ -96,7 +96,7 @@ public abstract class Resource {
return id; return id;
} }
void setId(String id){ public void setId(String id){
this.id=id; this.id=id;
} }

View File

@ -98,6 +98,7 @@ public class Resources {
schema.newValidator().validate(new StreamSource(in)); schema.newValidator().validate(new StreamSource(in));
} }
//helper //helper

View File

@ -54,6 +54,8 @@ public class GCoreEndpointTest {
endpoint.profile().newDeploymentData().activationTime(Calendar.getInstance()); endpoint.profile().newDeploymentData().activationTime(Calendar.getInstance());
endpoint.profile().endpoints().add().nameAndAddress("name",URI.create("http://acme.org")); endpoint.profile().endpoints().add().nameAndAddress("name",URI.create("http://acme.org"));
return endpoint; return endpoint;
} }