public final class LearningPathFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.tencompetence.generated.model.LearningPath |
addLearningPath(org.tencompetence.generated.model.LearningPath learningPath,
com.liferay.portal.service.ServiceContext ctx)
Add a LearningPath.
|
static org.tencompetence.generated.model.LearningPath |
copyLearningPath(org.tencompetence.generated.model.LearningPath currentPath,
java.lang.String newUri,
com.liferay.portal.service.ServiceContext ctx)
Copy a LearningPath.
|
static org.tencompetence.generated.model.LearningPath |
createLearningPath()
Creates a LearningPath.
|
static org.tencompetence.generated.model.LearningPath |
createLearningPath(long id)
Creates a LearningPath.
|
static void |
deleteLearningPath(org.tencompetence.generated.model.LearningPath learningPath,
com.liferay.portal.service.ServiceContext ctx)
Delete a LearningPath.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getAllBareLearningPaths()
Get all bare LearningPaths (paths and plans) with no title, description or xmlData.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getAllLearningPaths()
Get a list from all LearningPaths (paths + plans).
|
static org.tencompetence.generated.model.LearningPath |
getBareLearningPath(long learningPathId)
Get a bare LearningPath with no title, description or xmlData.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getBareLearningPaths()
Get all bare LearningPaths with no title, description or xmlData.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getBareLearningPathsByIds(java.util.List<java.lang.Long> ids)
Get some bare LearningPaths with no title, description or xmlData.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getCoEditedLearningPathsForUser(long userId,
com.liferay.portal.service.ServiceContext ctx)
Get a list from all co-edited LearningPaths.
|
static java.util.List<com.liferay.portal.model.User> |
getCoEditors(long learningPathId)
Return a list from coauthors for this Learningpath.
|
static org.tencompetence.generated.model.LearningPath |
getLearningPath(long learningPathId,
com.liferay.portal.service.ServiceContext ctx)
Gets a learning path.
|
static org.tencompetence.generated.model.LearningPath |
getLearningPathByUri(java.lang.String uri,
com.liferay.portal.service.ServiceContext ctx)
Get a LearningPath specified by its Uri.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPaths()
Get a list from all LearningPaths.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPathsByGroupId(long groupId)
Get a list from all LearningPaths for a specific group.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPathsByIds(java.util.List<java.lang.Long> ids,
com.liferay.portal.service.ServiceContext ctx)
Get a list from some LearningPaths.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPathsForUser(long userId,
com.liferay.portal.service.ServiceContext ctx,
boolean logInJournal)
Get a list from all owned LearningPaths.
|
static org.tencompetence.generated.model.LearningPath |
getLearningPlanByUri(java.lang.String uri,
com.liferay.portal.service.ServiceContext ctx)
Get a LearningPlan specified by its Uri.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPlans()
Get a list from all LearningPlans.
|
static java.util.List<org.tencompetence.generated.model.LearningPath> |
getLearningPlansByGroupId(long groupId)
Get a list from all LearningPlans for a specific group.
|
static org.tencompetence.generated.model.LearningPath |
updateLearningPath(org.tencompetence.generated.model.LearningPath learningPath,
com.liferay.portal.service.ServiceContext ctx)
Update learning path.
|
public static org.tencompetence.generated.model.LearningPath createLearningPath() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.LearningPath createLearningPath(long id) throws com.liferay.portal.kernel.exception.SystemException
id
- the idcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.LearningPath getLearningPath(long learningPathId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
learningPathId
- the learning path idctx
- the ctxcom.liferay.portal.kernel.exception.PortalException
- the portal exceptioncom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.LearningPath getBareLearningPath(long learningPathId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
learningPathId
- learningPathIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getAllBareLearningPaths() throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getBareLearningPaths() throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getBareLearningPathsByIds(java.util.List<java.lang.Long> ids) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
ids
- The LearningPath idscom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPathsByIds(java.util.List<java.lang.Long> ids, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
ids
- The LearningPath ids.ctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getAllLearningPaths() throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPaths() throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPathsByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
groupId
- the groupIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPlans() throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPlansByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
groupId
- the groupIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.LearningPath getLearningPathByUri(java.lang.String uri, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
uri
- The LearningPath Uri.ctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.LearningPath getLearningPlanByUri(java.lang.String uri, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
uri
- The LearningPlan Uri.ctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getLearningPathsForUser(long userId, com.liferay.portal.service.ServiceContext ctx, boolean logInJournal) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
ctx
- The ServiceContextlogInJournal
- Log this actiion in the journaluserId
- The userIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.LearningPath> getCoEditedLearningPathsForUser(long userId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
ctx
- The ServiceContextuserId
- The userIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.LearningPath addLearningPath(org.tencompetence.generated.model.LearningPath learningPath, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
learningPath
- The LearningPathctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.LearningPath copyLearningPath(org.tencompetence.generated.model.LearningPath currentPath, java.lang.String newUri, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
currentPath
- The currentPathnewUri
- newUrictx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static void deleteLearningPath(org.tencompetence.generated.model.LearningPath learningPath, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
learningPath
- The LearningPathctx
- The ServiceContextcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.LearningPath updateLearningPath(org.tencompetence.generated.model.LearningPath learningPath, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
learningPath
- the learning pathctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static java.util.List<com.liferay.portal.model.User> getCoEditors(long learningPathId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
learningPathId
- the learningPath Idcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exception