2017-01-24 17:24:22 +01:00
|
|
|
package org.gcube.datacatalogue.ckanutillibrary.server.utils.url;
|
2016-12-06 19:01:21 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Entity context for uri resolver
|
|
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
|
|
*/
|
|
|
|
public enum EntityContext {
|
|
|
|
|
2016-12-20 11:59:46 +01:00
|
|
|
PRODUCT("product"),
|
2016-12-06 19:01:21 +01:00
|
|
|
GROUP("group"),
|
|
|
|
ORGANIZATION("organization");
|
|
|
|
|
|
|
|
private String entityAsString;
|
|
|
|
|
|
|
|
private EntityContext(String entityAsString) {
|
|
|
|
this.entityAsString = entityAsString;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return this.entityAsString;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|