/** * Simple class for storing a task favorite. It contains only a reference to one task. * @author Kai Reinhard (k.reinhard@micromata.de) * */ public class TaskFavorite { @UserPrefParameter(i18nKey = "task") private TaskDO task; public void setTask(TaskDO task) { this.task = task; } public TaskDO getTask() { return task; } }
private void evaluateAnnotation(final UserPrefEntryDO userPrefEntry, final Class<?> beanType, final Field field) { final UserPrefParameter ann = field.getAnnotation(UserPrefParameter.class); userPrefEntry.i18nKey = ann.i18nKey(); userPrefEntry.tooltipI18nKey = ann.tooltipI18nKey(); userPrefEntry.dependsOn = StringUtils.isNotBlank(ann.dependsOn()) ? ann.dependsOn() : null; userPrefEntry.required = ann.required(); userPrefEntry.multiline = ann.multiline(); userPrefEntry.orderString = StringUtils.isNotBlank(ann.orderString()) ? ann.orderString() : null; if (String.class.isAssignableFrom(field.getType()) == true) { userPrefEntry.maxLength = HibernateUtils.getPropertyLength(beanType, field.getName()); } userPrefEntry.type = field.getType(); }
/** * Simple class for storing a project favorite. It contains only a reference to one project. * @author Kai Reinhard (k.reinhard@micromata.de) * */ public class ProjektFavorite { @UserPrefParameter(i18nKey = "fibu.projekt") private ProjektDO projekt; public void setProjekt(ProjektDO projekt) { this.projekt = projekt; } public ProjektDO getProjekt() { return projekt; } }
/** * Simple class for storing a customer favorite. It contains only a reference to one project. * @author Kai Reinhard (k.reinhard@micromata.de) * */ public class KundeFavorite { @UserPrefParameter(i18nKey = "fibu.kunde") private KundeDO kunde; public void setKunde(KundeDO kunde) { this.kunde = kunde; } public KundeDO getKunde() { return kunde; } }
/** * Simple class for storing a user favorite. It contains only a reference to one user. * @author Kai Reinhard (k.reinhard@micromata.de) * */ public class UserFavorite { @UserPrefParameter(i18nKey = "user") private PFUserDO user; public void setUser(PFUserDO user) { this.user = user; } public PFUserDO getUser() { return user; } }
/** * Favorite entry for a JIRA-Project. * @author Kai Reinhard (k.reinhard@micromata.de) * */ public class JiraProject implements Serializable { private static final long serialVersionUID = -1573788962309994887L; @UserPrefParameter(i18nKey = "userPref.area.jira.project.pid", tooltipI18nKey = "userPref.area.jira.project.pid.tooltip", required = true) private Integer pid; /** * JIRA's project id (pid). */ public Integer getPid() { return pid; } public void setPid(final Integer pid) { this.pid = pid; } }
@UserPrefParameter(i18nKey = "task", orderString = "2") @IndexedEmbedded(depth = 1) private TaskDO task; @UserPrefParameter(i18nKey = "user", orderString = "1") @IndexedEmbedded(depth = 1) private PFUserDO user; private Timestamp stopTime; @UserPrefParameter(i18nKey = "timesheet.location") @UserPrefParameter(i18nKey = "description", multiline = true) @UserPrefParameter(i18nKey = "fibu.kost2", orderString = "3", dependsOn = "task") @IndexedEmbedded(depth = 2) private Kost2DO kost2;
@UserPrefParameter(i18nKey = "plugins.todo.subject") @UserPrefParameter(i18nKey = "plugins.todo.reporter") @IndexedEmbedded(depth = 1) private PFUserDO reporter; @UserPrefParameter(i18nKey = "plugins.todo.assignee") @IndexedEmbedded(depth = 1) private PFUserDO assignee; @UserPrefParameter(i18nKey = "task") @IndexedEmbedded(depth = 1) private TaskDO task; @UserPrefParameter(i18nKey = "group") @IndexedEmbedded(depth = 1) private GroupDO group; @UserPrefParameter(i18nKey = "description", multiline = true) @UserPrefParameter(i18nKey = "comment", multiline = true) @UserPrefParameter(i18nKey = "plugins.todo.type") @UserPrefParameter(i18nKey = "plugins.todo.status") @UserPrefParameter(i18nKey = "priority")
@UserPrefParameter(i18nKey = "description", multiline = true) @UserPrefParameter(i18nKey = "comment", multiline = true)
@UserPrefParameter(i18nKey = "plugins.skillmatrix.skilltraining.attendee.menu") @IndexedEmbedded(depth = 1) private PFUserDO attendee; @UserPrefParameter(i18nKey = "plugins.skillmatrix.skilltraining.training") @IndexedEmbedded(depth = 1) private TrainingDO training; @UserPrefParameter(i18nKey = "description", multiline = true)
@UserPrefParameter(i18nKey = "description", multiline = true) @UserPrefParameter(i18nKey = "comment", multiline = true)
@UserPrefParameter(i18nKey = "description", multiline = true)