コード例 #1
0
 protected Object[] getErrorMessageParams(IEvent event) {
   CreateDefinitionEvent addEvent = (CreateDefinitionEvent) event;
   /** @todo TBD */
   return new Object[] {
     GFDefinition.ENTITY_NAME, addEvent.getName(),
   };
 }
コード例 #2
0
  protected AbstractEntity prepareCreationData(IEvent event) {

    CreateDefinitionEvent addEvent = (CreateDefinitionEvent) event;

    GFTemplate template = new GFTemplate();
    template.setUId(addEvent.getTemplate().longValue());

    GFDefinition newDefinition = new GFDefinition();
    newDefinition.setDefinitionName(addEvent.getName());
    newDefinition.setFilename(addEvent.getFilename());
    newDefinition.setTemplate(template);

    return newDefinition;
  }