Search in sources :

Example 1 with ActivityInfo

use of org.openkilda.log.model.ActivityInfo in project open-kilda by telstra.

the class UserActivityLogService method getActivityInfo.

/**
 * Gets the activity types and users info.
 *
 * @return the ActivityInfo
 */
public ActivityInfo getActivityInfo() {
    ActivityInfo activityInfo = new ActivityInfo();
    List<ActivityTypeInfo> activityTypeInfos = LogConversionUtil.getActivityTypeInfo();
    List<UserInfo> userInfos = userService.getAllUsers();
    activityInfo.setActivityTypeInfo(activityTypeInfos);
    activityInfo.setUserInfo(userInfos);
    return activityInfo;
}
Also used : ActivityInfo(org.openkilda.log.model.ActivityInfo) ActivityTypeInfo(org.openkilda.log.model.ActivityTypeInfo) UserInfo(org.usermanagement.model.UserInfo)

Aggregations

ActivityInfo (org.openkilda.log.model.ActivityInfo)1 ActivityTypeInfo (org.openkilda.log.model.ActivityTypeInfo)1 UserInfo (org.usermanagement.model.UserInfo)1