Class ClientUserUtilities
java.lang.Object
com.inductiveautomation.ignition.common.script.builtin.AbstractUserUtilities
com.inductiveautomation.ignition.client.script.ClientUserUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UIResponse
addCompositeScheduleImpl
(String name, String scheduleOne, String scheduleTwo, String description) protected UIResponse
addHolidayImpl
(HolidayModel holiday) protected UIResponse
addRoleImpl
(String userSource, String role) protected UIResponse
addScheduleImpl
(AbstractScheduleModel schedule) protected UIResponse
addUserImpl
(String userSource, User user) protected UIResponse
editHolidayImpl
(String holidayName, HolidayModel holiday) protected UIResponse
editRoleImpl
(String userSource, String oldName, String newName) protected UIResponse
editScheduleImpl
(String scheduleName, AbstractScheduleModel schedule) protected UIResponse
editUserImpl
(String userSource, User user) protected HolidayModel
getHolidayImpl
(String holidayName) protected Collection<String>
protected Collection<HolidayModel>
protected User
getNewUserImpl
(String userSource, String username) protected Collection<String>
getRolesImpl
(String userSource) protected Collection<User>
getScheduledUsersImpl
(String userSource, long date) protected AbstractScheduleModel
getScheduleImpl
(String scheduleName) protected Collection<String>
protected Collection<AbstractScheduleModel>
protected User
getUserImpl
(String userSource, String username) Find a specific user based on username.protected Collection<User>
getUsersImpl
(String userSource) List all users in a user sourceprotected Collection<UserSourceMeta>
protected Boolean
isUserScheduledImpl
(User user, long date) protected UIResponse
removeHolidayImpl
(String holidayName) protected UIResponse
removeRoleImpl
(String userSource, String role) protected UIResponse
removeScheduleImpl
(String schedule) protected UIResponse
removeUserImpl
(String userSource, String username) Methods inherited from class com.inductiveautomation.ignition.common.script.builtin.AbstractUserUtilities
addCompositeSchedule, addCompositeSchedule, addHoliday, addRole, addSchedule, addUser, createScheduleAdjustment, editHoliday, editRole, editSchedule, editUser, getHoliday, getHolidayNames, getHolidays, getNewUser, getRoles, getSchedule, getScheduledUsers, getScheduledUsers, getScheduledUsers, getScheduleNames, getSchedules, getUser, getUsers, getUserSources, isUserScheduled, isUserScheduled, isUserScheduled, removeHoliday, removeRole, removeSchedule, removeUser
-
Constructor Details
-
ClientUserUtilities
public ClientUserUtilities()
-
-
Method Details
-
getUserSourcesImpl
- Specified by:
getUserSourcesImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getUsersImpl
Description copied from class:AbstractUserUtilities
List all users in a user source- Specified by:
getUsersImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getUserImpl
Description copied from class:AbstractUserUtilities
Find a specific user based on username. Return null if the user is not found.- Specified by:
getUserImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getNewUserImpl
- Specified by:
getNewUserImpl
in classAbstractUserUtilities
- Throws:
Exception
-
addUserImpl
- Specified by:
addUserImpl
in classAbstractUserUtilities
- Throws:
Exception
-
editUserImpl
- Specified by:
editUserImpl
in classAbstractUserUtilities
- Throws:
Exception
-
removeUserImpl
- Specified by:
removeUserImpl
in classAbstractUserUtilities
- Throws:
Exception
-
addRoleImpl
- Specified by:
addRoleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
editRoleImpl
protected UIResponse editRoleImpl(String userSource, String oldName, String newName) throws Exception - Specified by:
editRoleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
removeRoleImpl
- Specified by:
removeRoleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getRolesImpl
- Specified by:
getRolesImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getScheduleImpl
- Specified by:
getScheduleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getSchedulesImpl
- Specified by:
getSchedulesImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getScheduleNamesImpl
- Specified by:
getScheduleNamesImpl
in classAbstractUserUtilities
- Throws:
Exception
-
removeScheduleImpl
- Specified by:
removeScheduleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
editScheduleImpl
protected UIResponse editScheduleImpl(String scheduleName, AbstractScheduleModel schedule) throws Exception - Specified by:
editScheduleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
addScheduleImpl
- Specified by:
addScheduleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
addCompositeScheduleImpl
protected UIResponse addCompositeScheduleImpl(String name, String scheduleOne, String scheduleTwo, String description) throws Exception - Specified by:
addCompositeScheduleImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getHolidayImpl
- Specified by:
getHolidayImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getHolidayNamesImpl
- Specified by:
getHolidayNamesImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getHolidaysImpl
- Specified by:
getHolidaysImpl
in classAbstractUserUtilities
- Throws:
Exception
-
removeHolidayImpl
- Specified by:
removeHolidayImpl
in classAbstractUserUtilities
- Throws:
Exception
-
editHolidayImpl
- Specified by:
editHolidayImpl
in classAbstractUserUtilities
- Throws:
Exception
-
addHolidayImpl
- Specified by:
addHolidayImpl
in classAbstractUserUtilities
- Throws:
Exception
-
isUserScheduledImpl
- Specified by:
isUserScheduledImpl
in classAbstractUserUtilities
- Throws:
Exception
-
getScheduledUsersImpl
- Specified by:
getScheduledUsersImpl
in classAbstractUserUtilities
- Throws:
Exception
-