Cleaning code
This commit is contained in:
parent
cc908bf1b0
commit
5f8850611d
|
@ -13,6 +13,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.Schema
|
|||
import org.gcube.informationsystem.resourceregistry.contexts.ContextUtility;
|
||||
import org.gcube.informationsystem.resourceregistry.contexts.security.AdminSecurityContext;
|
||||
import org.gcube.informationsystem.resourceregistry.contexts.security.SecurityContext.PermissionMode;
|
||||
import org.gcube.informationsystem.resourceregistry.dbinitialization.DatabaseEnvironment;
|
||||
import org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement;
|
||||
import org.gcube.informationsystem.types.TypeMapper;
|
||||
import org.gcube.informationsystem.types.reference.Type;
|
||||
|
@ -25,7 +26,6 @@ import com.orientechnologies.orient.core.metadata.OMetadata;
|
|||
import com.orientechnologies.orient.core.metadata.schema.OClass;
|
||||
import com.orientechnologies.orient.core.metadata.schema.OSchema;
|
||||
import com.orientechnologies.orient.core.metadata.security.OSecurity;
|
||||
import com.tinkerpop.blueprints.util.StringFactory;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
|
@ -131,7 +131,7 @@ public class CachedType<T extends Type> {
|
|||
String name = oSuperClass.getName();
|
||||
CachedType<?> cachedType = typesCache.getCachedType(name);
|
||||
cachedType.setOClass(oSuperClass);
|
||||
if(name.compareTo(StringFactory.V.toUpperCase()) == 0 || name.compareTo(StringFactory.E.toUpperCase()) == 0
|
||||
if(name.compareTo(DatabaseEnvironment.V) == 0 || name.compareTo(DatabaseEnvironment.E) == 0
|
||||
|| name.compareTo(OSecurity.RESTRICTED_CLASSNAME) == 0) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue