public final class EvidenceFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.tencompetence.generated.model.Evidence |
addEvidence(org.tencompetence.generated.model.Evidence evidence,
com.liferay.portal.service.ServiceContext ctx)
Adds the evidence.
|
static org.tencompetence.generated.model.Evidence |
createEvidence()
Creates the evidence.
|
static java.util.List<java.lang.Long> |
getEntityIdsByEvidenceId(long evidenceId,
java.lang.String targetType)
Get a list from entityId's from an Evidences for a specific TargetType (=EntityClasse).
|
static org.tencompetence.generated.model.Evidence |
getEvidence(long evidenceId,
com.liferay.portal.service.ServiceContext ctx)
Get evidence.
|
static java.util.List<org.tencompetence.generated.model.Evidence> |
getEvidencesByUserTargetTypes(long userId,
java.util.List<java.lang.String> targetTypes)
Get all Evidences for a specific User and TargetTypes (=EntityClasses).
|
static java.util.List<org.tencompetence.generated.model.Evidence> |
getEvidencesByUserTargetTypes(long userId,
java.lang.String targetType)
Get all Evidences for a specific User and TargetType (=EntityClass).
|
static java.util.List<org.tencompetence.generated.model.Evidence> |
getEvidencesByUserTargetTypeTargetId(long userId,
java.lang.String targetType,
java.lang.Long targetId)
Get all Evidences for a specific User,TargetType (=EntityClass) and TargetId.
|
static org.tencompetence.generated.model.Evidence |
updateEvidence(org.tencompetence.generated.model.Evidence evidence,
com.liferay.portal.service.ServiceContext ctx)
Update evidence.
|
public static org.tencompetence.generated.model.Evidence createEvidence() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.Evidence addEvidence(org.tencompetence.generated.model.Evidence evidence, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
evidence
- the evidencectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static org.tencompetence.generated.model.Evidence updateEvidence(org.tencompetence.generated.model.Evidence evidence, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
evidence
- the evidencectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static org.tencompetence.generated.model.Evidence getEvidence(long evidenceId, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
evidenceId
- the evidenceIdctx
- 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.Evidence> getEvidencesByUserTargetTypes(long userId, java.lang.String targetType) throws com.liferay.portal.kernel.exception.SystemException
userId
- userIdtargetType
- TargetTypecom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.Evidence> getEvidencesByUserTargetTypes(long userId, java.util.List<java.lang.String> targetTypes) throws com.liferay.portal.kernel.exception.SystemException
userId
- userIdtargetTypes
- TargetTypescom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.Evidence> getEvidencesByUserTargetTypeTargetId(long userId, java.lang.String targetType, java.lang.Long targetId) throws com.liferay.portal.kernel.exception.SystemException
userId
- userIdtargetType
- TargetTypetargetId
- TargetIdcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<java.lang.Long> getEntityIdsByEvidenceId(long evidenceId, java.lang.String targetType) throws com.liferay.portal.kernel.exception.SystemException
evidenceId
- evidenceIdtargetType
- TargetTypecom.liferay.portal.kernel.exception.SystemException
- SystemException