Cleaning code
This commit is contained in:
parent
9deed7214b
commit
cc908bf1b0
|
@ -136,6 +136,9 @@ public class DatabaseEnvironment {
|
||||||
|
|
||||||
private static final Key KEY;
|
private static final Key KEY;
|
||||||
|
|
||||||
|
public static final String V = "V";
|
||||||
|
public static final String E = "E";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
InputStream input = null;
|
InputStream input = null;
|
||||||
|
@ -381,10 +384,10 @@ public class DatabaseEnvironment {
|
||||||
OSchema oSchema = oMetadata.getSchema();
|
OSchema oSchema = oMetadata.getSchema();
|
||||||
OClass oRestricted = oSchema.getClass(OSecurity.RESTRICTED_CLASSNAME);
|
OClass oRestricted = oSchema.getClass(OSecurity.RESTRICTED_CLASSNAME);
|
||||||
|
|
||||||
OClass v = oSchema.getClass("V");
|
OClass v = oSchema.getClass(V);
|
||||||
v.addSuperClass(oRestricted);
|
v.addSuperClass(oRestricted);
|
||||||
|
|
||||||
OClass e = oSchema.getClass("E");
|
OClass e = oSchema.getClass(E);
|
||||||
e.addSuperClass(oRestricted);
|
e.addSuperClass(oRestricted);
|
||||||
|
|
||||||
oDatabaseSession.commit();
|
oDatabaseSession.commit();
|
||||||
|
|
|
@ -21,7 +21,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import com.orientechnologies.orient.core.record.OElement;
|
import com.orientechnologies.orient.core.record.OElement;
|
||||||
import com.orientechnologies.orient.core.record.impl.ODocument;
|
import com.orientechnologies.orient.core.record.impl.ODocument;
|
||||||
import com.tinkerpop.blueprints.Edge;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Luca Frosini (ISTI - CNR)
|
* @author Luca Frosini (ISTI - CNR)
|
||||||
|
@ -121,11 +120,13 @@ public class HeaderUtility {
|
||||||
return header;
|
return header;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public static Header addHeader(Edge edge, UUID uuid) {
|
public static Header addHeader(Edge edge, UUID uuid) {
|
||||||
Header header = createHeader(uuid);
|
Header header = createHeader(uuid);
|
||||||
edge.setProperty(IdentifiableElement.HEADER_PROPERTY, header);
|
edge.setProperty(IdentifiableElement.HEADER_PROPERTY, header);
|
||||||
return header;
|
return header;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public static Header getHeader(OElement element) throws ResourceRegistryException {
|
public static Header getHeader(OElement element) throws ResourceRegistryException {
|
||||||
return Utility.getPropertyDocument(Header.class, element, IdentifiableElement.HEADER_PROPERTY);
|
return Utility.getPropertyDocument(Header.class, element, IdentifiableElement.HEADER_PROPERTY);
|
||||||
|
|
Loading…
Reference in New Issue