Package org.gatein.api.application

Examples of org.gatein.api.application.ApplicationImpl


        container.setAccessPermission(Util.from(src.getAccessPermissions()));
        return container;
    }

    private ContainerItem getContainerItemFor(org.exoplatform.portal.config.model.Application<?> src) {
        ApplicationImpl dst = new ApplicationImpl();

        dst.setAccessPermission(Util.from(src.getAccessPermissions()));
        dst.setDescription(src.getDescription());
        dst.setIconURL(src.getIcon());
        dst.setId(src.getId());
        dst.setApplicationName(src.getType().getName());

        ApplicationType<?> type = src.getType();
        if (type == ApplicationType.GADGET) {
            dst.setType(org.gatein.api.application.ApplicationType.GADGET);
        } else if (type == ApplicationType.PORTLET) {
            dst.setType(org.gatein.api.application.ApplicationType.PORTLET);
        } else if (type == ApplicationType.WSRP_PORTLET) {
            dst.setType(org.gatein.api.application.ApplicationType.WSRP);
        } else {
            throw new IllegalStateException("Application Type is not of any recognized type.");
        }

        return dst;
View Full Code Here

TOP

Related Classes of org.gatein.api.application.ApplicationImpl

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.