public final class JournalEntryFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.tencompetence.generated.model.PortfolioEntry |
addJournalEntry(org.tencompetence.generated.model.PortfolioEntry portfolioEntry,
com.liferay.portal.service.ServiceContext ctx)
Adds the journal entry.
|
static java.util.List<java.lang.Long> |
convertToIdList(java.util.List<org.tencompetence.generated.model.PortfolioEntry> list)
Create a list from Entity-Id's from a PortfolioEntry list.
|
static java.util.List<java.lang.Long> |
convertToIdList(java.util.List<org.tencompetence.generated.model.PortfolioEntry> list,
java.lang.String entityClass)
Create a list from Entity-Id's from a PortfolioEntry list.
|
static org.tencompetence.generated.model.PortfolioEntry |
createJournalEntry()
Creates the journal entry.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntitiesByUCGClassesEventTypes(long userId,
long companyId,
long groupId,
java.util.List<java.lang.String> entityClasses,
java.util.List<java.lang.String> eventTypes,
java.util.Date startDate,
java.util.Date endDate)
Get all Portfolio Entities for a specific User, Company, Group, Classes, eventTypes, startDate and endDate.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUCG(long userId,
long companyId,
long groupId)
Get all entries for a specific User.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUCGClassesDateRange(long userId,
long companyId,
long groupId,
java.util.List<java.lang.String> entityClasses,
java.util.Date startDate,
java.util.Date endDate)
Get all Portfolio Entries for a specific User, Classes, startDate and endDate.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUCGClassesEventTypesDateRange(long userId,
long companyId,
long groupId,
java.util.List<java.lang.String> entityClasses,
java.util.List<java.lang.String> eventTypes,
java.util.Date startDate,
java.util.Date endDate)
Get all Portfolio Entries for a specific User, Classes, eventTypes, startDate and endDate.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUCGClassEventTypeValue(long userId,
long companyId,
long groupId,
java.lang.String entityClass,
java.lang.String eventType,
java.lang.String value)
Get all Portfolio Entries for a specific User, Class and eventType.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUCGEntityIdEventTypesDateRange(long userId,
long companyId,
long groupId,
java.lang.String entityId,
java.util.List<java.lang.String> eventTypes,
java.util.Date startDate,
java.util.Date endDate,
boolean sortByDateDescending)
Get all entries for a specific User, Company, group, Entity, eventTypes, startDate and endDate.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUserClassEventType(long userId,
java.lang.String entityClass,
java.lang.String eventType)
Get all Portfolio Entries for a specific User, Class and eventType.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getEntriesByUserEventTypes(java.util.List<java.lang.String> eventTypes,
java.util.Date startDate,
java.util.Date endDate,
com.liferay.portal.service.ServiceContext ctx)
Get all Portfolio Entries for a specific User, eventTypes, startDate and endDate.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getLatestEntriesByUCGClassEventTypes(long userId,
long companyId,
long groupId,
java.lang.String entityClass,
java.util.List<java.lang.String> events)
Get a list from the most recent PortfolioEntries for a specific User, Company, Group, entityClass and eventTypes.
|
static java.util.List<org.tencompetence.generated.model.PortfolioEntry> |
getLatestEntriesByUserClassEventType(java.lang.String entityClass,
java.lang.String event,
com.liferay.portal.service.ServiceContext ctx)
Get a list from the most recent PortfolioEntries for a specific User, entityClass and eventType.
|
static org.tencompetence.generated.model.PortfolioEntry |
getLatestEntryByUCGClassEntityIdEventTypeValue(long userId,
long companyId,
long groupId,
java.lang.String entityClass,
java.lang.String entityId,
java.lang.String eventType,
java.lang.String value)
Get the most recent PortfolioEntry for a specific User, Company, Group, entityClass, entityId, eventType and
value.
|
public static org.tencompetence.generated.model.PortfolioEntry createJournalEntry() throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic static org.tencompetence.generated.model.PortfolioEntry addJournalEntry(org.tencompetence.generated.model.PortfolioEntry portfolioEntry, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
portfolioEntry
- the portfolio entryctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- the system exceptioncom.liferay.portal.kernel.exception.PortalException
- the portal exceptionpublic static org.tencompetence.generated.model.PortfolioEntry getLatestEntryByUCGClassEntityIdEventTypeValue(long userId, long companyId, long groupId, java.lang.String entityClass, java.lang.String entityId, java.lang.String eventType, java.lang.String value) throws com.liferay.portal.kernel.exception.SystemException
entityClass
- The entityClassentityId
- The entityIdeventType
- The eventTypevalue
- the valueuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getLatestEntriesByUCGClassEventTypes(long userId, long companyId, long groupId, java.lang.String entityClass, java.util.List<java.lang.String> events) throws com.liferay.portal.kernel.exception.SystemException
entityClass
- The entityClassevents
- The eventTypesuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getLatestEntriesByUserClassEventType(java.lang.String entityClass, java.lang.String event, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
entityClass
- The entityClassevent
- eventctx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUCG(long userId, long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException
userId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUCGEntityIdEventTypesDateRange(long userId, long companyId, long groupId, java.lang.String entityId, java.util.List<java.lang.String> eventTypes, java.util.Date startDate, java.util.Date endDate, boolean sortByDateDescending) throws com.liferay.portal.kernel.exception.SystemException
entityId
- entityIdeventTypes
- EventTypesstartDate
- the start dateendDate
- the end datesortByDateDescending
- sortByDateDescendinguserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUserClassEventType(long userId, java.lang.String entityClass, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException
entityClass
- entityClasseventType
- EventTypeuserId
- the user idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUCGClassEventTypeValue(long userId, long companyId, long groupId, java.lang.String entityClass, java.lang.String eventType, java.lang.String value) throws com.liferay.portal.kernel.exception.SystemException
entityClass
- entityClasseventType
- EventTypevalue
- the valueuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUCGClassesEventTypesDateRange(long userId, long companyId, long groupId, java.util.List<java.lang.String> entityClasses, java.util.List<java.lang.String> eventTypes, java.util.Date startDate, java.util.Date endDate) throws com.liferay.portal.kernel.exception.SystemException
entityClasses
- entityClasseseventTypes
- EventTypesstartDate
- the start dateendDate
- the end dateuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUserEventTypes(java.util.List<java.lang.String> eventTypes, java.util.Date startDate, java.util.Date endDate, com.liferay.portal.service.ServiceContext ctx) throws com.liferay.portal.kernel.exception.SystemException
eventTypes
- EventTypesstartDate
- the start dateendDate
- the end datectx
- the ctxcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntriesByUCGClassesDateRange(long userId, long companyId, long groupId, java.util.List<java.lang.String> entityClasses, java.util.Date startDate, java.util.Date endDate) throws com.liferay.portal.kernel.exception.SystemException
entityClasses
- entityClassesstartDate
- the start dateendDate
- the end dateuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<java.lang.Long> convertToIdList(java.util.List<org.tencompetence.generated.model.PortfolioEntry> list)
list
- The PortfolioEntrylistpublic static java.util.List<org.tencompetence.generated.model.PortfolioEntry> getEntitiesByUCGClassesEventTypes(long userId, long companyId, long groupId, java.util.List<java.lang.String> entityClasses, java.util.List<java.lang.String> eventTypes, java.util.Date startDate, java.util.Date endDate) throws com.liferay.portal.kernel.exception.SystemException
entityClasses
- entityClasseseventTypes
- EventTypesstartDate
- the start dateendDate
- the end dateuserId
- the user idcompanyId
- the company idgroupId
- the group idcom.liferay.portal.kernel.exception.SystemException
- SystemExceptionpublic static java.util.List<java.lang.Long> convertToIdList(java.util.List<org.tencompetence.generated.model.PortfolioEntry> list, java.lang.String entityClass)
list
- The PortfolioEntrylistentityClass
- The full class name from the entity which is stored in this portfolio entry.