Package com.gcrm.domain

Examples of com.gcrm.domain.UserStatus


     * @return the SUCCESS result
     */
    public String get() throws Exception {
        if (this.getId() != null) {
            user = baseService.getEntityById(User.class, this.getId());
            UserStatus status = user.getStatus();
            if (status != null) {
                statusID = status.getId();
            }
            User reportTo = user.getReport_to();
            if (reportTo != null) {
                reportToID = reportTo.getId();
            }
View Full Code Here


     * Saves entity field
     *
     * @throws Exception
     */
    private void saveEntity() throws Exception {
        UserStatus status = null;
        if (statusID != null) {
            status = userStatusService
                    .getEntityById(UserStatus.class, statusID);
        }
        user.setStatus(status);
View Full Code Here

            int id = instance.getId();
            String name = CommonUtil.fromNullToEmpty(instance.getName());
            String title = CommonUtil.fromNullToEmpty(instance.getTitle());
            String department = CommonUtil.fromNullToEmpty(instance
                    .getDepartment());
            UserStatus status = instance.getStatus();
            String statusName = CommonUtil.getOptionLabel(status);

            if (isList) {
                User createdBy = instance.getCreated_by();
                String createdByName = "";
View Full Code Here

                            CommonUtil.fromNullToEmpty(user.getName()));
                    data1.put(header[2],
                            CommonUtil.fromNullToEmpty(user.getFirst_name()));
                    data1.put(header[3],
                            CommonUtil.fromNullToEmpty(user.getLast_name()));
                    UserStatus userStatus = user.getStatus();
                    if (userStatus != null) {
                        data1.put(header[4], userStatus.getId());
                    } else {
                        data1.put(header[4], "");
                    }
                    data1.put(header[5], CommonUtil.getOptionLabel(userStatus));
                    data1.put(header[6],
View Full Code Here

                    String statusID = row
                            .get(getText("entity.status_id.label"));
                    if (CommonUtil.isNullOrEmpty(statusID)) {
                        user.setStatus(null);
                    } else {
                        UserStatus userStatus = userStatusService
                                .getEntityById(UserStatus.class,
                                        Integer.parseInt(statusID));
                        user.setStatus(userStatus);
                    }
                    user.setTitle(CommonUtil.fromNullToEmpty(row
View Full Code Here

TOP

Related Classes of com.gcrm.domain.UserStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.