Package org.criticalfailure.torchlight.core.domain.entity

Examples of org.criticalfailure.torchlight.core.domain.entity.Participant


                    // TODO: count
            }
        }
        else if(element instanceof Participant) {
            logger.debug("element is a participant");
            Participant p = (Participant)element;

            switch(columnIndex) {
                case 0:
                    logger.debug("column 0");
                    return p.getName();

                case 1:
                    logger.debug("column 1");

                    // TODO
            }
        }
        else if(element instanceof Library) {
            logger.debug("element is a library");
            Library p = (Library)element;

            switch(columnIndex) {
                case 0:
                    logger.debug("column 0");
                    return p.getName();

                case 1:
                    logger.debug("column 1");

                    // TODO
View Full Code Here


     */
    public Participant createParticipant(boolean empty) {

        logger.info("Creating new participant.");

        Participant p = (Participant)appContext.getBean("participant");

        if(!empty) {
            p.setName(Messages.getString("model.factory.participant.name.default"));
            // p.setLabel(Messages.getString("model.factory.participant.label.default"));
            // p.setDescription(Messages.getString("model.factory.setting.description.default"));
        }

        logger.info("Created participant: " + p);
View Full Code Here

     */
    public Participant createParticipant(Participant template) {

        logger.info("Creating new participant from template: " + template);

        Participant p = (Participant)appContext.getBean("participant");

        p.setId(template.getId());
        p.setName(template.getName());
        p.setAddress(template.getAddress());
        p.setContactInfo(template.getContactInfo());
        p.setNotes(template.getNotes());

        logger.info("Created participant: " + p);
        return p;
    }
View Full Code Here

            Set<Participant> participants = new HashSet<Participant>();
            logger.debug("participants: " + so.getParticipants().size());
            for(String participantId : so.getParticipants()) {
                logger.trace("participantId: " + participantId);

                Participant participant = participantManager.getParticipant(participantId);
                logger.trace("participant: " + participant);

                participants.add(participant);
            }
            c.setParticipants(participants);
View Full Code Here

            if(so.getCampaignId() != null) {
                oi.setCampaign(campaignManager.getCampaign(so.getCampaignId()));
            }

            if(StringUtils.stripToNull(so.getParticipantId()) != null) {
                Participant p = participantManager.getParticipant(so.getParticipantId());
                logger.trace("p: " + p);
                if(p == null) {
                    p = participantStorageObjectTranslator.translateFrom(csm.loadParticipant(so.getParticipantId()),
                            csm);
                }
View Full Code Here

                String filePath = PathUtils.buildPath(participantStoragePath, participantId);
                logger.trace("filePath: " + filePath);
                logger.info("Loading local participant from file: " + filePath);

                XMLDecoder dec = new XMLDecoder(new BufferedInputStream(new FileInputStream(filePath)));
                Participant p = (Participant)dec.readObject();
                logger.trace("participant: " + p);

                dec.close();

                participants.add(p);
View Full Code Here

     * .lang.Object)
     */
    public Participant translateFrom(ParticipantSO vo, ICampaignStorageManager csm)
            throws StorageObjectTranslationException {

        Participant p = participantFactory.createParticipant(true);

        translateFromWithMerge(vo, p, csm);

        return p;
    }
View Full Code Here

    public Participant getOwner() {
        return owner;
    }

    public void setOwner(Participant owner) {
        Participant old = this.owner;
        this.owner = owner;

        postPropertyChangeEvent("owner", old, owner);
    }
View Full Code Here

    @Override
    public void runWithEvent(Event event) {

        logger.info("Executing 'create participant' action: " + event);

        Participant p = participantFactory.createParticipant(false);
        logger.trace("p: " + p);

        try {
            // create a dialog to get information from the user
            IParticipantBuilderDialog dialog = (IParticipantBuilderDialog)appContext.getBean(
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.domain.entity.Participant

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.