Removed old commented code
This commit is contained in:
parent
12ade8e7de
commit
c65e84a0bb
|
@ -66,8 +66,6 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
||||||
|
|
||||||
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
|
|
||||||
// private static Logger staticLogger = LoggerFactory.getLogger(ElementManagement.class);
|
|
||||||
|
|
||||||
public final static String DELETED = "deleted";
|
public final static String DELETED = "deleted";
|
||||||
|
|
||||||
public final static String AT = "@";
|
public final static String AT = "@";
|
||||||
|
@ -120,9 +118,6 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
||||||
this.reload = false;
|
this.reload = false;
|
||||||
|
|
||||||
this.entryPoint = false;
|
this.entryPoint = false;
|
||||||
|
|
||||||
// this.superClassesToBeExcluded = new HashSet<>();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cleanCachedSerialization() {
|
public void cleanCachedSerialization() {
|
||||||
|
@ -335,7 +330,6 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
||||||
|
|
||||||
objectNode.put(Element.CLASS_PROPERTY, getTypeName());
|
objectNode.put(Element.CLASS_PROPERTY, getTypeName());
|
||||||
|
|
||||||
//Collection<String> superClasses = getSuperclasses();
|
|
||||||
Collection<String> superClasses = getCachedType().getSuperTypes();
|
Collection<String> superClasses = getCachedType().getSuperTypes();
|
||||||
ArrayNode arrayNode = objectMapper.valueToTree(superClasses);
|
ArrayNode arrayNode = objectMapper.valueToTree(superClasses);
|
||||||
|
|
||||||
|
|
|
@ -94,18 +94,8 @@ public class PropertyElementManagement {
|
||||||
|
|
||||||
// Decrypting with Context Key (default key)
|
// Decrypting with Context Key (default key)
|
||||||
String decryptedValue = EncryptedImpl.decrypt(contextEncryptedValue);
|
String decryptedValue = EncryptedImpl.decrypt(contextEncryptedValue);
|
||||||
|
|
||||||
encrypted.setDecryptedValue(decryptedValue, false);
|
encrypted.setDecryptedValue(decryptedValue, false);
|
||||||
|
|
||||||
/*
|
|
||||||
// Encrypting with DB Key
|
|
||||||
Key databaseKey = DatabaseEnvironment.getDatabaseKey();
|
|
||||||
String dbEncryptedValue = EncryptedImpl.encrypt(decryptedValue, databaseKey);
|
|
||||||
|
|
||||||
// Setting the value encrypted with DB key
|
|
||||||
encrypted.setEncryptedValue(dbEncryptedValue);
|
|
||||||
*/
|
|
||||||
|
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
throw new ResourceRegistryException("Unable to manage "+Encrypted.NAME+" "+org.gcube.informationsystem.model.reference.properties.Property.NAME);
|
throw new ResourceRegistryException("Unable to manage "+Encrypted.NAME+" "+org.gcube.informationsystem.model.reference.properties.Property.NAME);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,11 +150,6 @@ public abstract class EntityManagement<E extends Entity, ET extends EntityType>
|
||||||
|
|
||||||
this.relationManagements = new HashMap<>();
|
this.relationManagements = new HashMap<>();
|
||||||
|
|
||||||
/*
|
|
||||||
this.superClassesToBeExcluded.add(AccessType.ENTITY_ELEMENT.getName());
|
|
||||||
this.superClassesToBeExcluded.add(AccessType.ENTITY.getName());
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* By the default the system execute the the operation of
|
* By the default the system execute the the operation of
|
||||||
* context sharing so this variable is initialised as false.
|
* context sharing so this variable is initialised as false.
|
||||||
|
|
|
@ -136,11 +136,6 @@ public abstract class RelationManagement<T extends EntityManagement<? extends En
|
||||||
super(accessType, Resource.class, targetEntityClass);
|
super(accessType, Resource.class, targetEntityClass);
|
||||||
this.defaultPropagationConstraint = defaultPropagationConstraint;
|
this.defaultPropagationConstraint = defaultPropagationConstraint;
|
||||||
|
|
||||||
/*
|
|
||||||
this.superClassesToBeExcluded.add(AccessType.RELATION_ELEMENT.getName());
|
|
||||||
this.superClassesToBeExcluded.add(AccessType.RELATION.getName());
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* By the default the system execute the the operation of
|
* By the default the system execute the the operation of
|
||||||
* context sharing so this variable is initialised as false.
|
* context sharing so this variable is initialised as false.
|
||||||
|
|
Loading…
Reference in New Issue