Search in sources :

Example 1 with DuplicateGadgetURLException

use of com.liferay.opensocial.DuplicateGadgetURLException in project liferay-ide by liferay.

the class GadgetLocalServiceImpl method validate.

protected void validate(long companyId, String url, String portletCategoryNames) throws PortalException, SystemException {
    Gadget gadget = gadgetPersistence.fetchByC_U(companyId, url);
    if (gadget != null) {
        throw new DuplicateGadgetURLException();
    }
    validate(portletCategoryNames);
}
Also used : Gadget(com.liferay.opensocial.model.Gadget) DuplicateGadgetURLException(com.liferay.opensocial.DuplicateGadgetURLException)

Aggregations

DuplicateGadgetURLException (com.liferay.opensocial.DuplicateGadgetURLException)1 Gadget (com.liferay.opensocial.model.Gadget)1