Ejemplo n.º 1
0
 public void addToEveryScreenRelationship(org.pachyderm.foundation.eof.PDBScreen object) {
   log.debug("adding {} to everyScreen relationship", object);
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     addToEveryScreen(object);
   } else {
     addObjectToBothSidesOfRelationshipWithKey(object, _PDBPresentation.EVERY_SCREEN_KEY);
   }
 }
Ejemplo n.º 2
0
 public void removeFromEveryScreenRelationship(org.pachyderm.foundation.eof.PDBScreen object) {
   log.debug("removing {} from everyScreen relationship", object);
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     removeFromEveryScreen(object);
   } else {
     removeObjectFromBothSidesOfRelationshipWithKey(object, _PDBPresentation.EVERY_SCREEN_KEY);
   }
 }
 public void removeFromPrivilegesRelationship(er.rbac.eof.ERPrivilege object) {
   if (_ERRole.LOG.isDebugEnabled()) {
     _ERRole.LOG.debug("removing " + object + " from privileges relationship");
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     removeFromPrivileges(object);
   } else {
     removeObjectFromBothSidesOfRelationshipWithKey(object, _ERRole.Keys.PRIVILEGES);
   }
 }
 public void addToPrivilegesRelationship(er.rbac.eof.ERPrivilege object) {
   if (_ERRole.LOG.isDebugEnabled()) {
     _ERRole.LOG.debug("adding " + object + " to privileges relationship");
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     addToPrivileges(object);
   } else {
     addObjectToBothSidesOfRelationshipWithKey(object, _ERRole.Keys.PRIVILEGES);
   }
 }
Ejemplo n.º 5
0
 public void setPrimeScreenRelationship(org.pachyderm.foundation.eof.PDBScreen value) {
   log.debug("updating primeScreen from {} to {}", primeScreen(), value);
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setPrimeScreen(value);
   } else if (value == null) {
     org.pachyderm.foundation.eof.PDBScreen oldValue = primeScreen();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _PDBPresentation.PRIME_SCREEN_KEY);
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, _PDBPresentation.PRIME_SCREEN_KEY);
   }
 }
Ejemplo n.º 6
0
 public void setPhotoRelationship(er.attachment.model.ERAttachment value) {
   if (_Employee.LOG.isDebugEnabled()) {
     _Employee.LOG.debug("updating photo from " + photo() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setPhoto(value);
   } else if (value == null) {
     er.attachment.model.ERAttachment oldValue = photo();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, "photo");
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, "photo");
   }
 }
Ejemplo n.º 7
0
 public void setCompanyRelationship(er.uber.model.Company value) {
   if (_Employee.LOG.isDebugEnabled()) {
     _Employee.LOG.debug("updating company from " + company() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setCompany(value);
   } else if (value == null) {
     er.uber.model.Company oldValue = company();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, "company");
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, "company");
   }
 }
Ejemplo n.º 8
0
 public void setUserAgentRelationship(er.corebl.model.ERCUserAgent value) {
   if (_ERCMailOpen.LOG.isDebugEnabled()) {
     _ERCMailOpen.LOG.debug("updating userAgent from " + userAgent() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setUserAgent(value);
   } else if (value == null) {
     er.corebl.model.ERCUserAgent oldValue = userAgent();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _ERCMailOpen.USER_AGENT_KEY);
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, _ERCMailOpen.USER_AGENT_KEY);
   }
 }
Ejemplo n.º 9
0
 public void setMailMessageRelationship(er.corebl.model.ERCMailMessage value) {
   if (_ERCMailOpen.LOG.isDebugEnabled()) {
     _ERCMailOpen.LOG.debug("updating mailMessage from " + mailMessage() + " to " + value);
   }
   if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater
       .updateInverseRelationships()) {
     setMailMessage(value);
   } else if (value == null) {
     er.corebl.model.ERCMailMessage oldValue = mailMessage();
     if (oldValue != null) {
       removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _ERCMailOpen.MAIL_MESSAGE_KEY);
     }
   } else {
     addObjectToBothSidesOfRelationshipWithKey(value, _ERCMailOpen.MAIL_MESSAGE_KEY);
   }
 }