@NamedQueries (
{
@NamedQuery (name = "AllUserActivityLog", query = "SELECT a FROM user_activity_log AS a ORDER BY a.activityId DESC"),
- @NamedQuery (name = "SearchAllUsersActivity", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser ORDER BY a.activityId DESC"),
- @NamedQuery (name = "SearchAllActivityByType", query = "SELECT a FROM user_activity_log AS a WHERE a.activityType LIKE :activityType ORDER BY a.activityId DESC"),
- @NamedQuery (name = "SearchUsersActivityByType", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser AND a.activityType LIKE :activityType ORDER BY a.activityId DESC"),
- @NamedQuery (name = "SearchAllActivityByMultipleTypes", query = "SELECT a FROM user_activity_log AS a WHERE a.activityType IN :activityTypes ORDER BY a.activityId DESC"),
- @NamedQuery (name = "SearchUsersActivityByMultipleTypes", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser AND a.activityType IN :activityTypes ORDER BY a.activityId DESC")
+ @NamedQuery (name = "SearchAllUsersActivity", query = "SELECT a FROM user_activity_log AS a WHERE a.activityUser = :activityUser ORDER BY a.activityId DESC")
}
)
@SuppressWarnings ("PersistenceUnitPresent")
/**
* Constructor with message, type and user
* <p>
- * @param activityMessage Message
- * @param activityType Type
- * @param activityUser User instance
+ * @param activityMessage Message
+ * @param activityType Type
+ * @param activityUser User instance
* @param activityTimestamp imestamp
*/
public UserActivityLog (final String activityMessage, final String activityType, final User activityUser, final Date activityTimestamp) {
/**
* Constructor with type, user and timestamp
* <p>
- * @param activityType Type
- * @param activityUser User instance
+ * @param activityType Type
+ * @param activityUser User instance
* @param activityTimestamp imestamp
*/
public UserActivityLog (final String activityType, final User activityUser, final Date activityTimestamp) {
/**
* Constructor with message, type, user, timestamp and principal name
* <p>
- * @param activityMessage Message
- * @param activityType Type
- * @param activityUser User instance
+ * @param activityMessage Message
+ * @param activityType Type
+ * @param activityUser User instance
* @param activityTimestamp imestamp
- * @param principalName Principal name
+ * @param principalName Principal name
*/
public UserActivityLog (final String activityMessage, final String activityType, final User activityUser, final Date activityTimestamp, final String principalName) {
// Call other constructor
/**
* Consctructor with type, user, timestamp and principal name
* <p>
- * @param activityType Type
- * @param activityUser User instance
+ * @param activityType Type
+ * @param activityUser User instance
* @param activityTimestamp imestamp
- * @param principalName Principal name
+ * @param principalName Principal name
*/
public UserActivityLog (final String activityType, final User activityUser, final Date activityTimestamp, final String principalName) {
// Call other constructor