本文整理了Java中de.tudarmstadt.ukp.clarin.webanno.model.Project.getName()
方法的一些代码示例,展示了Project.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getName()
方法的具体详情如下:
包路径:de.tudarmstadt.ukp.clarin.webanno.model.Project
类名称:Project
方法名:getName
暂无
代码示例来源:origin: webanno/webanno
public RProject(Project aProject)
{
id = aProject.getId();
name = aProject.getName();
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote
public RProject(Project aProject)
{
id = aProject.getId();
name = aProject.getName();
}
代码示例来源:origin: inception-project/inception
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getName());
sb.append('{');
sb.append("user=").append(user.getUsername());
sb.append(", project=").append(project.getName());
sb.append('}');
return sb.toString();
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-scheduling
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getName());
sb.append('{');
sb.append("user=").append(user.getUsername());
sb.append(", project=").append(project.getName());
sb.append('}');
return sb.toString();
}
代码示例来源:origin: webanno/webanno
@Override
protected String load()
{
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd_HHmm");
return ProjectExportForm.this.getModelObject().getProject().getName() +
"_curated_documents_" + fmt.format(new Date()) + ".zip";
}
}) {
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-project
@Override
protected String load()
{
SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd_HHmm");
return ProjectExportForm.this.getModelObject().getProject().getName() +
"_curated_documents_" + fmt.format(new Date()) + ".zip";
}
}) {
代码示例来源:origin: webanno/webanno
@Override
public void removeTemplate(Project aProject, String aFileName, String aUsername)
throws IOException
{
FileUtils.forceDelete(new File(dir.getAbsolutePath() + "/" + PROJECT_FOLDER + "/"
+ aProject.getId() + MIRA + MIRA_TEMPLATE + aFileName));
Logging.setMDC(aProject.getId(), aUsername);
log.info("Removed template file [{}] from project [{}] ({})", aFileName, aProject.getName(),
aProject.getId());
Logging.clearMDC();
}
代码示例来源:origin: webanno/webanno
@Override
@Transactional
public void removeConstraintSet(ConstraintSet aSet)
{
entityManager.remove(entityManager.merge(aSet));
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aSet.getProject().getId()))) {
log.info("Removed constraints set [{}] in project [{}]({})",
aSet.getName(), aSet.getProject().getName(), aSet.getProject().getId());
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-constraints
@Override
@Transactional
public void removeConstraintSet(ConstraintSet aSet)
{
entityManager.remove(entityManager.merge(aSet));
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aSet.getProject().getId()))) {
log.info("Removed constraints set [{}] in project [{}]({})",
aSet.getName(), aSet.getProject().getName(), aSet.getProject().getId());
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-constraints
@Override
@Transactional
public void createConstraintSet(ConstraintSet aSet)
{
entityManager.persist(aSet);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aSet.getProject().getId()))) {
log.info("Created constraints set [{}] in project [{}]({})",
aSet.getName(), aSet.getProject().getName(), aSet.getProject().getId());
}
}
代码示例来源:origin: webanno/webanno
@Override
@Transactional
public void createConstraintSet(ConstraintSet aSet)
{
entityManager.persist(aSet);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aSet.getProject().getId()))) {
log.info("Created constraints set [{}] in project [{}]({})",
aSet.getName(), aSet.getProject().getName(), aSet.getProject().getId());
}
}
代码示例来源:origin: webanno/webanno
@Override
@Transactional
public void removeProjectPermission(ProjectPermission aPermission)
{
entityManager.remove(aPermission);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aPermission.getProject().getId()))) {
log.info("Removed permission [{}] for user [{}] on project [{}]({})",
aPermission.getLevel(), aPermission.getUser(),
aPermission.getProject().getName(), aPermission.getProject().getId());
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-project
@Override
@Transactional
public void createProjectPermission(ProjectPermission aPermission)
{
entityManager.persist(aPermission);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aPermission.getProject().getId()))) {
log.info("Created permission [{}] for user [{}] on project [{}]({})",
aPermission.getLevel(), aPermission.getUser(),
aPermission.getProject().getName(), aPermission.getProject().getId());
}
}
代码示例来源:origin: webanno/webanno
@Override
@Transactional
public void createProjectPermission(ProjectPermission aPermission)
{
entityManager.persist(aPermission);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aPermission.getProject().getId()))) {
log.info("Created permission [{}] for user [{}] on project [{}]({})",
aPermission.getLevel(), aPermission.getUser(),
aPermission.getProject().getName(), aPermission.getProject().getId());
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-project
@Override
@Transactional
public void removeProjectPermission(ProjectPermission aPermission)
{
entityManager.remove(aPermission);
try (MDC.MDCCloseable closable = MDC.putCloseable(Logging.KEY_PROJECT_ID,
String.valueOf(aPermission.getProject().getId()))) {
log.info("Removed permission [{}] for user [{}] on project [{}]({})",
aPermission.getLevel(), aPermission.getUser(),
aPermission.getProject().getName(), aPermission.getProject().getId());
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-brat
private String getCollection()
{
if (getModelObject().getProject() != null) {
return "#" + getModelObject().getProject().getName() + "/";
}
else {
return "";
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote
public ProjectStateChangeMessage(ProjectStateChangedEvent aEvent)
{
projectId = aEvent.getProject().getId();
projectName = aEvent.getProject().getName();
projectState = projectStateToString(aEvent.getNewState());
projectPreviousState = projectStateToString(aEvent.getPreviousState());
}
代码示例来源:origin: webanno/webanno
public ProjectStateChangeMessage(ProjectStateChangedEvent aEvent)
{
projectId = aEvent.getProject().getId();
projectName = aEvent.getProject().getName();
projectState = projectStateToString(aEvent.getNewState());
projectPreviousState = projectStateToString(aEvent.getPreviousState());
}
代码示例来源:origin: webanno/webanno
public DocumentStateChangeMessage(DocumentStateChangedEvent aEvent)
{
projectId = aEvent.getDocument().getProject().getId();
projectName = aEvent.getDocument().getProject().getName();
documentId = aEvent.getDocument().getId();
documentName = aEvent.getDocument().getName();
documentState = AeroRemoteApiController.sourceDocumentStateToString(aEvent.getNewState());
documentPreviousState = AeroRemoteApiController
.sourceDocumentStateToString(aEvent.getPreviousState());
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote
public AnnotationStateChangeMessage(AnnotationStateChangeEvent aEvent)
{
projectId = aEvent.getDocument().getProject().getId();
projectName = aEvent.getDocument().getProject().getName();
documentId = aEvent.getDocument().getId();
documentName = aEvent.getDocument().getName();
annotationUser = aEvent.getAnnotationDocument().getUser();
annotationState = AeroRemoteApiController
.annotationDocumentStateToString(aEvent.getNewState());
annotationPreviousState = AeroRemoteApiController
.annotationDocumentStateToString(aEvent.getPreviousState());
}
内容来源于网络,如有侵权,请联系作者删除!