public MoveTopicoLocalServiceClp(ClassLoaderProxy classLoaderProxy) { _classLoaderProxy = classLoaderProxy; _getBeanIdentifierMethodKey0 = new MethodKey(_classLoaderProxy.getClassName(), "getBeanIdentifier"); _setBeanIdentifierMethodKey1 = new MethodKey(_classLoaderProxy.getClassName(), "setBeanIdentifier", java.lang.String.class); _getTopicosPorComunidadeEForumMethodKey2 = new MethodKey(_classLoaderProxy.getClassName(), "getTopicosPorComunidadeEForum", long.class, long.class); _getForunsComunidadeMethodKey3 = new MethodKey(_classLoaderProxy.getClassName(), "getForunsComunidade", long.class); _getComunidadesComPermissaoParaMoverMethodKey4 = new MethodKey(_classLoaderProxy.getClassName(), "getComunidadesComPermissaoParaMover", long.class, long.class); _moveTopicoMethodKey5 = new MethodKey(_classLoaderProxy.getClassName(), "moveTopico", br.gov.camara.edemocracia.movetopico.model.InfoMoverTopico.class); }
public static MoveTopicoLocalService getService() { if (_service == null) { Object object = PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), MoveTopicoLocalService.class.getName()); ClassLoader portletClassLoader = (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), "portletClassLoader"); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(object, MoveTopicoLocalService.class.getName(), portletClassLoader); _service = new MoveTopicoLocalServiceClp(classLoaderProxy); ClpSerializer.setClassLoader(portletClassLoader); ReferenceRegistry.registerReference(MoveTopicoLocalServiceUtil.class, "_service"); MethodCache.remove(MoveTopicoLocalService.class); } return _service; }
public static InfrastructureService getService() { if (_service == null) { Object obj = PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME, InfrastructureService.class.getName()); ClassLoader portletClassLoader = (ClassLoader)PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME, "portletClassLoader"); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(obj, portletClassLoader); _service = new InfrastructureServiceClp(classLoaderProxy); ClpSerializer.setClassLoader(portletClassLoader); } return _service; }
public void afterInsertOrUpdate(UploadRequest uploadRequest,PortletResponse portletResponse,LearningActivity learningActivity) throws PortalException,SystemException { try { ClassLoader classLoader = clp.getClassLoader(); Class learningActivityClass = Class.forName(LearningActivity.class.getName(),true, classLoader); MethodKey afterInsertOrUpdateMethod = new MethodKey(clp.getClassName(), "afterInsertOrUpdate", UploadRequest.class, PortletResponse.class, learningActivityClass); Object learningActivityObj = translateLearningActivity(learningActivity); clp.invoke(new MethodHandler(afterInsertOrUpdateMethod, uploadRequest, portletResponse, learningActivityObj)); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(learningActivityObj, clp.getClassLoader()); learningActivity.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override public boolean isDone(LearningActivity learningActivity, long userId) throws SystemException, PortalException { Object returnObj = null; try { ClassLoader classLoader = clp.getClassLoader(); Class learningActivityClass = Class.forName(LearningActivity.class.getName(),true, classLoader); MethodKey isDoneMethod = new MethodKey(clp.getClassName(), "isDone", learningActivityClass,Long.class); Object learningActivityObj = translateLearningActivity(learningActivity); returnObj = clp.invoke(new MethodHandler(isDoneMethod, learningActivityObj,userId)); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(learningActivityObj, clp.getClassLoader()); learningActivity.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return ((Boolean)returnObj); }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation" }) public void updateCourse(Course course, ModuleResult moduleResult) throws SystemException { try { ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); Class moduleResultClass = Class.forName(ModuleResult.class.getName(),true, classLoader); MethodKey updateCourseMethod = new MethodKey(clp.getClassName(), "updateCourse",courseClass,moduleResultClass); Object courseObj = translateCourse(course); Object moduleResultObj = translateModuleResult(moduleResult); clp.invoke(new MethodHandler(updateCourseMethod, courseObj, moduleResultObj)); ClassLoaderProxy courseClassLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) courseClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); ClassLoaderProxy moduleResultClassLoaderProxy = new ClassLoaderProxy(moduleResultObj, clp.getClassLoader()); moduleResult.setModelAttributes((Map<String, Object>) moduleResultClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation" }) public boolean updateCourse(Course course,long userId) throws SystemException { try { Object returnObj = null; ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey updateCourseMethod = new MethodKey(clp.getClassName(), "updateCourse",courseClass,Long.class); Object courseObj = translateCourse(course); returnObj = clp.invoke(new MethodHandler(updateCourseMethod, courseObj, userId)); ClassLoaderProxy courseClassLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) courseClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); return ((Boolean)returnObj).booleanValue(); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation" }) public boolean updateCourse(Course course) throws SystemException { try { Object returnObj = null; ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey updateCourseMethod = new MethodKey(clp.getClassName(), "updateCourse",courseClass); Object courseObj = translateCourse(course); returnObj = clp.invoke(new MethodHandler(updateCourseMethod, courseObj)); ClassLoaderProxy courseClassLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) courseClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); return ((Boolean)returnObj).booleanValue(); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override @SuppressWarnings({ "unchecked", "deprecation" }) public void setExtraContent(Course course,String actionId,ServiceContext serviceContext) throws PortalException, SystemException { try { ClassLoader classLoader = clp.getClassLoader(); Class<?> courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey setExtraContentMethod = new MethodKey(clp.getClassName(), "setExtraContent", courseClass, String.class, ServiceContext.class); Object courseObj = translateCourse(course); clp.invoke(new MethodHandler(setExtraContentMethod, courseObj, actionId, serviceContext)); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof PortalException) { throw (PortalException)t; } if (t instanceof SystemException) { throw (SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation" }) public void onOpenCourse(Course course) throws SystemException { try { ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey updateCourseMethod = new MethodKey(clp.getClassName(), "onOpenCourse",courseClass); Object courseObj = translateCourse(course); clp.invoke(new MethodHandler(updateCourseMethod, courseObj)); ClassLoaderProxy courseClassLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) courseClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation" }) public void onCloseCourse(Course course) throws SystemException { try { ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey updateCourseMethod = new MethodKey(clp.getClassName(), "onCloseCourse",courseClass); Object courseObj = translateCourse(course); clp.invoke(new MethodHandler(updateCourseMethod, courseObj)); ClassLoaderProxy courseClassLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) courseClassLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
public CourseDiplomaClp(ClassLoaderProxy clp) { this.clp = clp; }
public LearningActivityTypeClp(ClassLoaderProxy clp) { this.clp = clp; }
public String setExtraContent(UploadRequest uploadRequest, PortletResponse portletResponse,LearningActivity learningActivity) throws PortalException,SystemException,DocumentException,IOException { try { log.info(":::::setExtraContent:::::"); ClassLoader classLoader = clp.getClassLoader(); Class learningActivityClass = Class.forName(LearningActivity.class.getName(),true, classLoader); MethodKey setExtraContentMethod = new MethodKey(clp.getClassName(), "setExtraContent", UploadRequest.class, PortletResponse.class, learningActivityClass); Object learningActivityObj = translateLearningActivity(learningActivity); log.info(":::::invoke:::::"); clp.invoke(new MethodHandler(setExtraContentMethod, uploadRequest, portletResponse, learningActivityObj)); log.info(":::::invoked:::::"); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(learningActivityObj, clp.getClassLoader()); learningActivity.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof IOException) { throw (IOException)t; } if (t instanceof DocumentException) { throw (DocumentException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } return null; }
public void deleteResources(ActionRequest actionRequest,ActionResponse actionResponse,LearningActivity learningActivity) throws PortalException,SystemException,DocumentException,IOException{ try { ClassLoader classLoader = clp.getClassLoader(); Class learningActivityClass = Class.forName(LearningActivity.class.getName(),true, classLoader); MethodKey deleteResourcesMethod = new MethodKey(clp.getClassName(), "deleteResources", ActionRequest.class, ActionResponse.class, learningActivityClass); Object learningActivityObj = translateLearningActivity(learningActivity); clp.invoke(new MethodHandler(deleteResourcesMethod, actionRequest, actionResponse, learningActivityObj)); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(learningActivityObj, clp.getClassLoader()); learningActivity.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof IOException) { throw (IOException)t; } if (t instanceof DocumentException) { throw (DocumentException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
public QuestionTypeClp(ClassLoaderProxy clp) { this.clp = clp; }
public CalificationTypeClp(ClassLoaderProxy clp) { this.clp = clp; }
public CourseEvalClp(ClassLoaderProxy clp) { this.clp = clp; }
@Override @SuppressWarnings({ "rawtypes", "unchecked", "deprecation"}) public void setEvaluationModel(Course course,JSONObject model) throws PortalException,SystemException,DocumentException,IOException { try { ClassLoader classLoader = clp.getClassLoader(); Class courseClass = Class.forName(Course.class.getName(),true, classLoader); MethodKey setEvaluationModelMethod = new MethodKey(clp.getClassName(), "setEvaluationModel",courseClass,JSONObject.class); Object courseObj = translateCourse(course); clp.invoke(new MethodHandler(setEvaluationModelMethod, courseObj, model)); ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(courseObj, clp.getClassLoader()); course.setModelAttributes((Map<String, Object>) classLoaderProxy.invoke("getModelAttributes", new Object[]{})); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); if (t instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)t; } if (t instanceof IOException) { throw (IOException)t; } if (t instanceof DocumentException) { throw (DocumentException)t; } if (t instanceof com.liferay.portal.kernel.exception.SystemException) { throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t.getClass().getName() + " is not a valid exception"); } } }
public DescriptionFilterClp(ClassLoaderProxy clp) { this.clp = clp; }
public ClassLoaderProxy getClassLoaderProxy() { return _classLoaderProxy; }
public InfrastructureServiceClp(ClassLoaderProxy classLoaderProxy) { _classLoaderProxy = classLoaderProxy; }
public GenerateQuestionClp(ClassLoaderProxy clp) { this.clp = clp; }