de.tudarmstadt.ukp.clarin.webanno.model.Project.isDisableExport()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中de.tudarmstadt.ukp.clarin.webanno.model.Project.isDisableExport()方法的一些代码示例,展示了Project.isDisableExport()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.isDisableExport()方法的具体详情如下:
包路径:de.tudarmstadt.ukp.clarin.webanno.model.Project
类名称:Project
方法名:isDisableExport

Project.isDisableExport介绍

暂无

代码示例

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

@Override
  protected void onConfigure()
  {
    super.onConfigure();
    
    AnnotatorState state = CurationPage.this.getModelObject();
    setVisible(state.getProject() != null
        && (projectService.isAdmin(state.getProject(), state.getUser())
            || !state.getProject().isDisableExport()));
  }
});

代码示例来源:origin: webanno/webanno

@Override
  protected void onConfigure()
  {
    super.onConfigure();
    
    AnnotatorState state = AutomationPage.this.getModelObject();
    setVisible(state.getProject() != null
        && (projectService.isAdmin(state.getProject(), state.getUser())
            || !state.getProject().isDisableExport()));
  }
});

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-automation

@Override
  protected void onConfigure()
  {
    super.onConfigure();
    
    AnnotatorState state = AutomationPage.this.getModelObject();
    setVisible(state.getProject() != null
        && (projectService.isAdmin(state.getProject(), state.getUser())
            || !state.getProject().isDisableExport()));
  }
});

代码示例来源:origin: webanno/webanno

@Override
  protected void onConfigure()
  {
    super.onConfigure();
    
    AnnotatorState state = CorrectionPage.this.getModelObject();
    setVisible(state.getProject() != null
        && (projectService.isAdmin(state.getProject(), state.getUser())
            || !state.getProject().isDisableExport()));
  }
});

代码示例来源:origin: webanno/webanno

@Override
  protected void onConfigure()
  {
    super.onConfigure();
    
    AnnotatorState state = CurationPage.this.getModelObject();
    setVisible(state.getProject() != null
        && (projectService.isAdmin(state.getProject(), state.getUser())
            || !state.getProject().isDisableExport()));
  }
});

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

@Override
public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage)
  throws Exception
{
  Project project = aRequest.getProject();
  aExProject.setDescription(project.getDescription());
  // In older versions of WebAnno, the mode was an enum which was serialized as upper-case
  // during export but as lower-case in the database. This is compensating for this case.
  aExProject.setMode(StringUtils.upperCase(project.getMode(), Locale.US));
  aExProject.setScriptDirection(project.getScriptDirection());
  aExProject.setVersion(project.getVersion());
  aExProject.setDisableExport(project.isDisableExport());
  aExProject.setCreated(project.getCreated());
  aExProject.setUpdated(project.getUpdated());
}

代码示例来源:origin: webanno/webanno

@Override
public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage)
  throws Exception
{
  Project project = aRequest.getProject();
  aExProject.setDescription(project.getDescription());
  // In older versions of WebAnno, the mode was an enum which was serialized as upper-case
  // during export but as lower-case in the database. This is compensating for this case.
  aExProject.setMode(StringUtils.upperCase(project.getMode(), Locale.US));
  aExProject.setScriptDirection(project.getScriptDirection());
  aExProject.setVersion(project.getVersion());
  aExProject.setDisableExport(project.isDisableExport());
  aExProject.setCreated(project.getCreated());
  aExProject.setUpdated(project.getUpdated());
}

代码示例来源:origin: webanno/webanno

_this.setVisible(state.getProject() != null
      && (projectService.isAdmin(state.getProject(), state.getUser())
          || !state.getProject().isDisableExport()));
}));

相关文章