public final class CompetenceFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.tencompetence.generated.model.Competence |
addCompetence(org.tencompetence.generated.model.Competence competence,
com.liferay.portal.service.ServiceContext ctx)
Adds the competence.
|
static org.tencompetence.generated.model.Competence |
createCompetence()
Creates a new competence.
|
static org.tencompetence.generated.model.Competence |
getBareCompetence(long competenceId)
Get a Competence without title and description.
|
static java.util.List<org.tencompetence.generated.model.Competence> |
getBareCompetencesByCompetenceMapId(long competenceMapId)
Get a Competences without title and description for a competenceMap.
|
static org.tencompetence.generated.model.Competence |
getCompetence(long competenceId,
com.liferay.portal.service.ServiceContext ctx)
Gets the competence.
|
static java.util.List<org.tencompetence.generated.model.Competence> |
getCompetenceByIds(java.util.List<java.lang.Long> competenceIds,
com.liferay.portal.service.ServiceContext ctx)
Gets the competence.
|
static java.util.List<org.tencompetence.generated.model.Competence> |
getCompetencesByCompetenceMapId(long competenceMapId,
com.liferay.portal.service.ServiceContext ctx)
Gets the competences by competence map id.
|
static java.util.List<org.tencompetence.generated.model.Competence> |
getCompetencesByCompetenceMapIdAndType(long competenceMapId,
java.lang.String type,
com.liferay.portal.service.ServiceContext ctx)
Gets the competences by competence map id and type.
|
static int |
getCompetencesCount(long competenceMapId,
com.liferay.portal.service.ServiceContext ctx)
Gets the competences count.
|
static int |
getCompetencesCount(long competenceMapId,
java.lang.String type,
com.liferay.portal.service.ServiceContext ctx)
Gets the count of competences of the specified type in the specified competence map.
|
static org.tencompetence.generated.model.Competence |
updateCompetence(org.tencompetence.generated.model.Competence competence,
com.liferay.portal.service.ServiceContext ctx)
Update competence.
|
public static org.tencompetence.generated.model.Competence createCompetence() throws com.liferay.portal.kernel.exception.SystemException
The entity is not persisted in the database.
com.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.Competence addCompetence(org.tencompetence.generated.model.Competence competence, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competence
- the competencectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the Portal exceptionpublic static org.tencompetence.generated.model.Competence getCompetence(long competenceId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competenceId
- the competence idctx
- 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.Competence> getCompetenceByIds(java.util.List<java.lang.Long> competenceIds, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competenceIds
- the competenceIdsctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static int getCompetencesCount(long competenceMapId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
competenceMapId
- the competence map idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static int getCompetencesCount(long competenceMapId, java.lang.String type, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
competenceMapId
- the competence map idtype
- the type of the competences to countctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static java.util.List<org.tencompetence.generated.model.Competence> getCompetencesByCompetenceMapId(long competenceMapId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
competenceMapId
- the competence map idctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static java.util.List<org.tencompetence.generated.model.Competence> getCompetencesByCompetenceMapIdAndType(long competenceMapId, java.lang.String type, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
competenceMapId
- the competence map idtype
- the typectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.Competence getBareCompetence(long competenceId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competenceId
- competenceIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static java.util.List<org.tencompetence.generated.model.Competence> getBareCompetencesByCompetenceMapId(long competenceMapId) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competenceMapId
- competenceMapIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptioncom.liferay.portal.kernel.exception.PortalException
- PortalExceptionpublic static org.tencompetence.generated.model.Competence updateCompetence(org.tencompetence.generated.model.Competence competence, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
competence
- the competencectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exception