public abstract class AbstractUserUtilities
extends java.lang.Object
| Constructor and Description |
|---|
AbstractUserUtilities() |
| Modifier and Type | Method and Description |
|---|---|
UIResponse |
addHoliday(HolidayModel holiday) |
protected abstract UIResponse |
addHolidayImpl(HolidayModel holiday) |
UIResponse |
addRole(java.lang.String userSource,
java.lang.String role) |
protected abstract UIResponse |
addRoleImpl(java.lang.String userSource,
java.lang.String role) |
UIResponse |
addSchedule(AbstractScheduleModel schedule) |
protected abstract UIResponse |
addScheduleImpl(AbstractScheduleModel schedule) |
UIResponse |
editHoliday(java.lang.String holidayName,
HolidayModel holiday) |
protected abstract UIResponse |
editHolidayImpl(java.lang.String holidayName,
HolidayModel holiday) |
UIResponse |
editRole(java.lang.String userSource,
java.lang.String oldName,
java.lang.String newName) |
protected abstract UIResponse |
editRoleImpl(java.lang.String userSource,
java.lang.String oldName,
java.lang.String newName) |
UIResponse |
editSchedule(java.lang.String scheduleName,
AbstractScheduleModel schedule) |
protected abstract UIResponse |
editScheduleImpl(java.lang.String scheduleName,
AbstractScheduleModel schedule) |
HolidayModel |
getHoliday(java.lang.String holidayName) |
protected abstract HolidayModel |
getHolidayImpl(java.lang.String holidayName) |
java.util.List<java.lang.String> |
getHolidayNames() |
protected abstract java.util.Collection<java.lang.String> |
getHolidayNamesImpl() |
java.util.List<HolidayModel> |
getHolidays() |
protected abstract java.util.Collection<HolidayModel> |
getHolidaysImpl() |
java.util.List<java.lang.String> |
getRoles(java.lang.String userSource) |
protected abstract java.util.Collection<java.lang.String> |
getRolesImpl(java.lang.String userSource) |
AbstractScheduleModel |
getSchedule(java.lang.String scheduleName) |
java.util.Collection<User> |
getScheduledUsers(java.lang.String userSource) |
java.util.Collection<User> |
getScheduledUsers(java.lang.String userSource,
java.util.Date date) |
java.util.Collection<User> |
getScheduledUsers(java.lang.String userSource,
long date) |
protected abstract java.util.Collection<User> |
getScheduledUsersImpl(java.lang.String userSource,
long date) |
protected abstract AbstractScheduleModel |
getScheduleImpl(java.lang.String scheduleName) |
java.util.List<java.lang.String> |
getScheduleNames() |
protected abstract java.util.Collection<java.lang.String> |
getScheduleNamesImpl() |
java.util.List<AbstractScheduleModel> |
getSchedules() |
protected abstract java.util.Collection<AbstractScheduleModel> |
getSchedulesImpl() |
User |
getUser(java.lang.String userSource,
java.lang.String username) |
protected abstract User |
getUserImpl(java.lang.String userSource,
java.lang.String username)
Find a specific user based on username.
|
java.util.List<PyUser> |
getUsers(java.lang.String userSource) |
protected abstract java.util.Collection<User> |
getUsersImpl(java.lang.String userSource)
List all users in a user source
|
boolean |
isUserScheduled(User user) |
java.lang.Boolean |
isUserScheduled(User user,
java.util.Date date) |
boolean |
isUserScheduled(User user,
long date) |
protected abstract java.lang.Boolean |
isUserScheduledImpl(User user,
long date) |
UIResponse |
removeHoliday(java.lang.String holidayName) |
protected abstract UIResponse |
removeHolidayImpl(java.lang.String holidayName) |
UIResponse |
removeRole(java.lang.String userSource,
java.lang.String role) |
protected abstract UIResponse |
removeRoleImpl(java.lang.String userSource,
java.lang.String role) |
UIResponse |
removeSchedule(java.lang.String scheduleName) |
protected abstract UIResponse |
removeScheduleImpl(java.lang.String schedule) |
public java.util.List<PyUser> getUsers(java.lang.String userSource) throws java.lang.Exception
java.lang.Exceptionpublic User getUser(java.lang.String userSource, java.lang.String username) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse addRole(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse editRole(java.lang.String userSource, java.lang.String oldName, java.lang.String newName) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse removeRole(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<java.lang.String> getRoles(java.lang.String userSource)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<java.lang.String> getScheduleNames()
throws java.lang.Exception
java.lang.Exception@Nullable public AbstractScheduleModel getSchedule(java.lang.String scheduleName) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<AbstractScheduleModel> getSchedules() throws java.lang.Exception
java.lang.Exceptionpublic UIResponse removeSchedule(java.lang.String scheduleName) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse editSchedule(java.lang.String scheduleName, AbstractScheduleModel schedule) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse addSchedule(AbstractScheduleModel schedule) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<java.lang.String> getHolidayNames()
throws java.lang.Exception
java.lang.Exceptionpublic HolidayModel getHoliday(java.lang.String holidayName) throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<HolidayModel> getHolidays() throws java.lang.Exception
java.lang.Exceptionpublic UIResponse removeHoliday(java.lang.String holidayName) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse editHoliday(java.lang.String holidayName, HolidayModel holiday) throws java.lang.Exception
java.lang.Exceptionpublic UIResponse addHoliday(HolidayModel holiday) throws java.lang.Exception
java.lang.Exceptionpublic boolean isUserScheduled(User user) throws java.lang.Exception
java.lang.Exceptionpublic boolean isUserScheduled(User user, long date) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isUserScheduled(User user, java.util.Date date) throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<User> getScheduledUsers(java.lang.String userSource) throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<User> getScheduledUsers(java.lang.String userSource, long date) throws java.lang.Exception
java.lang.Exceptionpublic java.util.Collection<User> getScheduledUsers(java.lang.String userSource, java.util.Date date) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<User> getUsersImpl(java.lang.String userSource) throws java.lang.Exception
java.lang.Exceptionprotected abstract User getUserImpl(java.lang.String userSource, java.lang.String username) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse addRoleImpl(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse editRoleImpl(java.lang.String userSource, java.lang.String oldName, java.lang.String newName) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse removeRoleImpl(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<java.lang.String> getRolesImpl(java.lang.String userSource)
throws java.lang.Exception
java.lang.Exception@Nullable protected abstract AbstractScheduleModel getScheduleImpl(java.lang.String scheduleName) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<AbstractScheduleModel> getSchedulesImpl() throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<java.lang.String> getScheduleNamesImpl()
throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse removeScheduleImpl(java.lang.String schedule) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse editScheduleImpl(java.lang.String scheduleName, AbstractScheduleModel schedule) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse addScheduleImpl(AbstractScheduleModel schedule) throws java.lang.Exception
java.lang.Exceptionprotected abstract HolidayModel getHolidayImpl(java.lang.String holidayName) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<java.lang.String> getHolidayNamesImpl()
throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<HolidayModel> getHolidaysImpl() throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse removeHolidayImpl(java.lang.String holidayName) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse editHolidayImpl(java.lang.String holidayName, HolidayModel holiday) throws java.lang.Exception
java.lang.Exceptionprotected abstract UIResponse addHolidayImpl(HolidayModel holiday) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.lang.Boolean isUserScheduledImpl(User user, long date) throws java.lang.Exception
java.lang.Exceptionprotected abstract java.util.Collection<User> getScheduledUsersImpl(java.lang.String userSource, long date) throws java.lang.Exception
java.lang.Exception