Package com.nineteendrops.tracdrops.client.api.ticket.component

Examples of com.nineteendrops.tracdrops.client.api.ticket.component.Component


        if(parameter == null){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component", this.getClass().getName()));
        }

        Component component = (Component)parameter;

        // check for mandatory fields
        String name = component.getName();
        if(name == null || name.trim().equals("")){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component.name", this.getClass().getName()));
        }

        String owner = component.getOwner();
        if(owner == null || owner.trim().equals("")){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Component.owner", this.getClass().getName()));
        }

        String description = component.getDescription();
        if(description == null){
            description = "";
        }

View Full Code Here


public class HashMapToComponentDecoder implements ReturnDecoder {

    public Object decode(Object result, TracProperties tracProperties, ArrayList keptParametersForDecoder) {

        HashMap map = (HashMap)result;
        Component component =  new Component((String)map.get(ComponentKeys.OWNER),
                                             (String)map.get(ComponentKeys.DESCRIPTION),
                                             (String)map.get(ComponentKeys.NAME));

        return component;
    }
View Full Code Here

TOP

Related Classes of com.nineteendrops.tracdrops.client.api.ticket.component.Component

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.