Cleaned code
This commit is contained in:
parent
5676d17c58
commit
eb240c751a
|
@ -182,25 +182,18 @@ public class DatabaseEnvironment {
|
|||
try {
|
||||
boolean created = initGraphDB();
|
||||
|
||||
AdminSecurityContext adminSecurityContext = AdminSecurityContext.getInstance();
|
||||
|
||||
QueryTemplatesSecurityContext queryTemplatesSecurityContext = QueryTemplatesSecurityContext.getInstance();
|
||||
TypeSecurityContext typeSecurityContext = TypeSecurityContext.getInstance();
|
||||
ContextSecurityContext contextSecurityContext = ContextSecurityContext.getInstance();
|
||||
|
||||
if(created) {
|
||||
ODatabasePool pool = new ODatabasePool(DatabaseEnvironment.DB_URI, CHANGED_ADMIN_USERNAME,
|
||||
CHANGED_ADMIN_PASSWORD);
|
||||
ODatabaseDocument oDatabaseDocument = pool.acquire();
|
||||
adminSecurityContext.create(oDatabaseDocument);
|
||||
AdminSecurityContext.getInstance().create(oDatabaseDocument);
|
||||
oDatabaseDocument.commit();
|
||||
oDatabaseDocument.close();
|
||||
pool.close();
|
||||
|
||||
queryTemplatesSecurityContext.create();
|
||||
typeSecurityContext.create();
|
||||
contextSecurityContext.create();
|
||||
|
||||
QueryTemplatesSecurityContext.getInstance().create();
|
||||
TypeSecurityContext.getInstance().create();
|
||||
ContextSecurityContext.getInstance().create();
|
||||
|
||||
List<Class<? extends Element>> definitionToBeCreated = new ArrayList<>();
|
||||
definitionToBeCreated.add(PropertyElement.class);
|
||||
|
|
Loading…
Reference in New Issue