Examples of TargetList


Examples of com.gcrm.domain.TargetList

            if (opportunities == null) {
                opportunities = new HashSet<Opportunity>();
            }
            opportunities.add(opportunity);
        } else if ("TargetList".equals(this.getRelationKey())) {
            TargetList targetList = targetListService.getEntityById(
                    TargetList.class, Integer.valueOf(this.getRelationValue()));
            Set<TargetList> targetLists = contact.getTargetLists();
            if (targetLists == null) {
                targetLists = new HashSet<TargetList>();
            }
View Full Code Here

Examples of com.gcrm.domain.TargetList

     * Selects the entities
     *
     * @return the SUCCESS result
     */
    public String select() throws ServiceException {
        TargetList targetList = null;
        Document document = null;
        Set<Account> accounts = null;

        if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            accounts = targetList.getAccounts();
        } else if ("Document".equals(this.getRelationKey())) {
            document = documentService.getEntityById(Document.class,
                    Integer.valueOf(this.getRelationValue()));
            accounts = document.getAccounts();
        }
View Full Code Here

Examples of com.gcrm.domain.TargetList

     * Unselects the entities
     *
     * @return the SUCCESS result
     */
    public String unselect() throws ServiceException {
        TargetList targetList = null;
        Document document = null;
        Set<Account> accounts = null;

        if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            accounts = targetList.getAccounts();
        } else if ("Document".equals(this.getRelationKey())) {
            document = documentService.getEntityById(Document.class,
                    Integer.valueOf(this.getRelationValue()));
            accounts = document.getAccounts();
        }
View Full Code Here

Examples of com.gcrm.domain.TargetList

     */
    public String save() throws Exception {
        final Account originalAccount = saveEntity();

        if ("TargetList".equals(this.getRelationKey())) {
            TargetList targetList = targetListService.getEntityById(
                    TargetList.class, Integer.valueOf(this.getRelationValue()));
            Set<TargetList> targetLists = account.getTargetLists();
            if (targetLists == null) {
                targetLists = new HashSet<TargetList>();
            }
View Full Code Here

Examples of com.gcrm.domain.TargetList

     * Saves the entity.
     *
     * @return the SUCCESS result
     */
    public String save() throws Exception {
        TargetList originalTargetList = saveEntity();
        final Collection<ChangeLog> changeLogs = changeLog(originalTargetList,
                targetList);
        if ("Campaign".equals(this.getRelationKey())) {
            Campaign campaign = campaignService.getEntityById(Campaign.class,
                    Integer.valueOf(this.getRelationValue()));
View Full Code Here

Examples of com.gcrm.domain.TargetList

            User user = userService
                    .getEntityById(User.class, loginUser.getId());
            Collection<ChangeLog> allChangeLogs = new ArrayList<ChangeLog>();
            for (String IDString : selectIDArray) {
                int id = Integer.parseInt(IDString);
                TargetList targetListInstance = this.baseService.getEntityById(
                        TargetList.class, id);
                TargetList originalTargetList = targetListInstance.clone();
                for (String fieldName : fieldNames) {
                    Object value = BeanUtil
                            .getFieldValue(targetList, fieldName);
                    BeanUtil.setFieldValue(targetListInstance, fieldName, value);
                }
View Full Code Here

Examples of com.gcrm.domain.TargetList

     *
     * @return original TargetList record
     * @throws Exception
     */
    private TargetList saveEntity() throws Exception {
        TargetList originalTargetList = null;
        if (targetList.getId() == null) {
            UserUtil.permissionCheck("create_targetList");
        } else {
            UserUtil.permissionCheck("update_targetList");
            originalTargetList = baseService.getEntityById(TargetList.class,
                    targetList.getId());
            targetList.setTargets(originalTargetList.getTargets());
            targetList.setContacts(originalTargetList.getContacts());
            targetList.setLeads(originalTargetList.getLeads());
            targetList.setUsers(originalTargetList.getUsers());
            targetList.setAccounts(originalTargetList.getAccounts());
            targetList.setCreated_on(originalTargetList.getCreated_on());
            targetList.setCreated_by(originalTargetList.getCreated_by());
        }

        User assignedTo = null;
        if (this.getAssignedToID() != null) {
            assignedTo = userService.getEntityById(User.class,
View Full Code Here

Examples of com.gcrm.domain.TargetList

     *
     * @return the SUCCESS result
     */
    public String select() throws ServiceException {
        Opportunity opportunity = null;
        TargetList targetList = null;
        Call call = null;
        Meeting meeting = null;
        Document document = null;
        CaseInstance caseInstance = null;
        Set<Contact> contacts = null;

        if ("Opportunity".equals(this.getRelationKey())) {
            opportunity = opportunityService.getEntityById(Opportunity.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = opportunity.getContacts();
        } else if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = targetList.getContacts();
        } else if ("Call".equals(this.getRelationKey())) {
            call = callService.getEntityById(Call.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = call.getContacts();
        } else if ("Meeting".equals(this.getRelationKey())) {
View Full Code Here

Examples of com.gcrm.domain.TargetList

     *
     * @return the SUCCESS result
     */
    public String unselect() throws ServiceException {
        Opportunity opportunity = null;
        TargetList targetList = null;
        Call call = null;
        Meeting meeting = null;
        Document document = null;
        CaseInstance caseInstance = null;
        Set<Contact> contacts = null;
        if ("Opportunity".equals(this.getRelationKey())) {
            opportunity = opportunityService.getEntityById(Opportunity.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = opportunity.getContacts();
        } else if ("TargetList".equals(this.getRelationKey())) {
            targetList = targetListService.getEntityById(TargetList.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = targetList.getContacts();
        } else if ("Call".equals(this.getRelationKey())) {
            call = callService.getEntityById(Call.class,
                    Integer.valueOf(this.getRelationValue()));
            contacts = call.getContacts();
        } else if ("Meeting".equals(this.getRelationKey())) {
View Full Code Here

Examples of com.gcrm.domain.TargetList

            if (opportunities == null) {
                opportunities = new HashSet<Opportunity>();
            }
            opportunities.add(opportunity);
        } else if ("TargetList".equals(this.getRelationKey())) {
            TargetList targetList = targetListService.getEntityById(
                    TargetList.class, Integer.valueOf(this.getRelationValue()));
            Set<TargetList> targetLists = lead.getTargetLists();
            if (targetLists == null) {
                targetLists = new HashSet<TargetList>();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.