public final class AssessmentTestFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addAssessmentItemsToAssessmentTest(long assessmentTestId,
long[] assessmentItemIds,
com.liferay.portal.service.ServiceContext ctx)
Adds the assessment items for assessment test.
|
static void |
addAssessmentItemToAssessmentTest(long assessmentTestId,
long assessmentItemId,
com.liferay.portal.service.ServiceContext ctx)
Adds the assessment item for assessment test.
|
static org.tencompetence.generated.model.AssessmentTest |
addAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest,
com.liferay.portal.service.ServiceContext ctx)
Adds the assessment test and updates Uol Repository.
|
static org.tencompetence.generated.model.AssessmentTest |
createAssessmentTest()
Creates the assessment test.
|
static void |
deleteAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest,
com.liferay.portal.service.ServiceContext ctx)
Removes the assessment test.
|
static java.util.List<org.tencompetence.generated.model.AssessmentItem> |
getAssessmentItemsByAssessmentTest(long assessmentTestId,
com.liferay.portal.service.ServiceContext ctx)
Gets the assessment items by assessment test.
|
static org.tencompetence.generated.model.AssessmentTest |
getAssessmentTest(long assessmentTestId,
com.liferay.portal.service.ServiceContext ctx)
Gets the assessment test by its id.
|
static org.tencompetence.generated.model.AssessmentTest |
getAssessmentTestByIdentifier(java.lang.String identifier,
com.liferay.portal.service.ServiceContext ctx)
Gets the assessment test by identifier.
|
static org.tencompetence.generated.model.AssessmentTest |
getAssessmentTestByLongId(long assessmentTestId,
com.liferay.portal.service.ServiceContext ctx)
Gets a assessmentTest by the primary key.
|
static java.util.List<org.tencompetence.generated.model.AssessmentTest> |
getAssessmentTests(com.liferay.portal.service.ServiceContext ctx)
Gets the assessment tests.
|
static java.util.List<org.tencompetence.generated.model.AssessmentTest> |
getAssessmentTestsByGroupId(long groupId,
com.liferay.portal.service.ServiceContext ctx)
Gets the assessment tests by groupId.
|
static java.util.List<org.tencompetence.generated.model.AssessmentTest> |
getAssessmentTestsByIds(java.util.List<java.lang.Long> ids)
Gets the assessment tests by ids.
|
static int |
getAssessmentTestsCount(com.liferay.portal.service.ServiceContext ctx)
Gets the assessment tests count.
|
static void |
removeAssessmentItemFromAssessmentTest(long assessmentTestId,
long assessmentItemId,
com.liferay.portal.service.ServiceContext ctx)
Removes the assessment item from assessment test.
|
static void |
removeAssessmentItemsFromAssessmentTest(long assessmentTestId,
long[] assessmentItemIds,
com.liferay.portal.service.ServiceContext ctx)
Removes the assessment items from assessment test.
|
static void |
setAssessmentItemsForAssessmentTest(long assessmentTestId,
long[] assessmentItemIds,
com.liferay.portal.service.ServiceContext ctx)
Sets the assessment items for assessment test.
|
static org.tencompetence.generated.model.AssessmentTest |
updateAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest,
com.liferay.portal.service.ServiceContext ctx)
Update assessment test.
|
public static org.tencompetence.generated.model.AssessmentTest createAssessmentTest() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.AssessmentTest addAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
assessmentTest
- the assessment testctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static void deleteAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
assessmentTest
- The assessment testctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.AssessmentTest updateAssessmentTest(org.tencompetence.generated.model.AssessmentTest assessmentTest, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
assessmentTest
- the assessment testctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static org.tencompetence.generated.model.AssessmentTest getAssessmentTest(long assessmentTestId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
assessmentTestId
- the assessment test idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static org.tencompetence.generated.model.AssessmentTest getAssessmentTestByIdentifier(java.lang.String identifier, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
identifier
- the identifierctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static java.util.List<org.tencompetence.generated.model.AssessmentTest> getAssessmentTests(com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
ctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static java.util.List<org.tencompetence.generated.model.AssessmentTest> getAssessmentTestsByGroupId(long groupId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
groupId
- the group idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static java.util.List<org.tencompetence.generated.model.AssessmentItem> getAssessmentItemsByAssessmentTest(long assessmentTestId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static void setAssessmentItemsForAssessmentTest(long assessmentTestId, long[] assessmentItemIds, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idassessmentItemIds
- the assessment item idsctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static void addAssessmentItemToAssessmentTest(long assessmentTestId, long assessmentItemId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idassessmentItemId
- the assessment item idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static void addAssessmentItemsToAssessmentTest(long assessmentTestId, long[] assessmentItemIds, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idassessmentItemIds
- the assessment item idsctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static void removeAssessmentItemFromAssessmentTest(long assessmentTestId, long assessmentItemId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idassessmentItemId
- the assessment item idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static void removeAssessmentItemsFromAssessmentTest(long assessmentTestId, long[] assessmentItemIds, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the assessment test idassessmentItemIds
- the assessment item idsctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static int getAssessmentTestsCount(com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
ctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static java.util.List<org.tencompetence.generated.model.AssessmentTest> getAssessmentTestsByIds(java.util.List<java.lang.Long> ids) throws com.liferay.portal.kernel.exception.SystemException
ids
- the idscom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.AssessmentTest getAssessmentTestByLongId(long assessmentTestId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
assessmentTestId
- the primary key of the assessmentTestctx
- the service contextcom.liferay.portal.kernel.exception.PortalException
- the PortalExceptioncom.liferay.portal.kernel.exception.SystemException
- the SystemException