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

Examples of com.nineteendrops.tracdrops.client.api.ticket.version.Version


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

        Version version = (Version)parameter;

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

        Date time = version.getTime();
        if(time == null){
            throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Version.time", this.getClass().getName()));
        }

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

View Full Code Here


public class HashMapToVersionDecoder implements ReturnDecoder {

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

        HashMap map = (HashMap)result;
        Version version =  new Version((String)map.get(VersionKeys.NAME),
                                       (String)map.get(VersionKeys.DESCRIPTION),
                                       (Date)map.get(VersionKeys.TIME));

        return version;
    }
View Full Code Here

TOP

Related Classes of com.nineteendrops.tracdrops.client.api.ticket.version.Version

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.