Package org.gatein.api

Examples of org.gatein.api.ApiException


                    described = service.resolveDescription(descriptionId, siteLocale, userLocale);
                } else {
                    described = service.resolveDescription(descriptionId, siteLocale);
                }
            } catch (Throwable t) {
                throw new ApiException("Failed to resolve description", t);
            }
            if (described != null) {
                resolved = (nameFlag) ? described.getName() : described.getDescription();
            }
        }
View Full Code Here


    @Override
    public List<Application> getApplications() throws ApiException {
        try {
            return adaptApplications(applicationRegistryService.getAllApplications());
        } catch (Exception e) {
            throw new ApiException(e.getMessage(), e);
        }
    }
View Full Code Here

    @Override
    public Application getApplication(String id) throws ApiException {
        try {
            return adaptApplication(applicationRegistryService.getApplication(id));
        } catch (Exception e) {
            throw new ApiException(e.getMessage(), e);
        }
    }
View Full Code Here

    public void importApplications() throws ApiException {
        try {
            applicationRegistryService.importAllPortlets();
            applicationRegistryService.importExoGadgets();
        } catch (Exception e) {
            throw new ApiException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.gatein.api.ApiException

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.