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