Class ClientUserUtilities
- java.lang.Object
-
- com.inductiveautomation.ignition.common.script.builtin.AbstractUserUtilities
-
- com.inductiveautomation.ignition.client.script.ClientUserUtilities
-
public class ClientUserUtilities extends AbstractUserUtilities
-
-
Constructor Summary
Constructors Constructor Description ClientUserUtilities()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UIResponseaddCompositeScheduleImpl(java.lang.String name, java.lang.String scheduleOne, java.lang.String scheduleTwo, java.lang.String description)protected UIResponseaddHolidayImpl(HolidayModel holiday)protected UIResponseaddRoleImpl(java.lang.String userSource, java.lang.String role)protected UIResponseaddScheduleImpl(AbstractScheduleModel schedule)protected UIResponseaddUserImpl(java.lang.String userSource, User user)protected UIResponseeditHolidayImpl(java.lang.String holidayName, HolidayModel holiday)protected UIResponseeditRoleImpl(java.lang.String userSource, java.lang.String oldName, java.lang.String newName)protected UIResponseeditScheduleImpl(java.lang.String scheduleName, AbstractScheduleModel schedule)protected UIResponseeditUserImpl(java.lang.String userSource, User user)protected HolidayModelgetHolidayImpl(java.lang.String holidayName)protected java.util.Collection<java.lang.String>getHolidayNamesImpl()protected java.util.Collection<HolidayModel>getHolidaysImpl()protected UsergetNewUserImpl(java.lang.String userSource, java.lang.String username)protected java.util.Collection<java.lang.String>getRolesImpl(java.lang.String userSource)protected java.util.Collection<User>getScheduledUsersImpl(java.lang.String userSource, long date)protected AbstractScheduleModelgetScheduleImpl(java.lang.String scheduleName)protected java.util.Collection<java.lang.String>getScheduleNamesImpl()protected java.util.Collection<AbstractScheduleModel>getSchedulesImpl()protected UsergetUserImpl(java.lang.String userSource, java.lang.String username)Find a specific user based on username.protected java.util.Collection<User>getUsersImpl(java.lang.String userSource)List all users in a user sourceprotected java.lang.BooleanisUserScheduledImpl(User user, long date)protected UIResponseremoveHolidayImpl(java.lang.String holidayName)protected UIResponseremoveRoleImpl(java.lang.String userSource, java.lang.String role)protected UIResponseremoveScheduleImpl(java.lang.String schedule)protected UIResponseremoveUserImpl(java.lang.String userSource, java.lang.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, isUserScheduled, isUserScheduled, isUserScheduled, removeHoliday, removeRole, removeSchedule, removeUser
-
-
-
-
Method Detail
-
getUsersImpl
protected java.util.Collection<User> getUsersImpl(java.lang.String userSource) throws java.lang.Exception
Description copied from class:AbstractUserUtilitiesList all users in a user source- Specified by:
getUsersImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getUserImpl
protected User getUserImpl(java.lang.String userSource, java.lang.String username) throws java.lang.Exception
Description copied from class:AbstractUserUtilitiesFind a specific user based on username. Return null if the user is not found.- Specified by:
getUserImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getNewUserImpl
protected User getNewUserImpl(java.lang.String userSource, java.lang.String username) throws java.lang.Exception
- Specified by:
getNewUserImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
addUserImpl
protected UIResponse addUserImpl(java.lang.String userSource, User user) throws java.lang.Exception
- Specified by:
addUserImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
editUserImpl
protected UIResponse editUserImpl(java.lang.String userSource, User user) throws java.lang.Exception
- Specified by:
editUserImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
removeUserImpl
protected UIResponse removeUserImpl(java.lang.String userSource, java.lang.String username) throws java.lang.Exception
- Specified by:
removeUserImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
addRoleImpl
protected UIResponse addRoleImpl(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
- Specified by:
addRoleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
editRoleImpl
protected UIResponse editRoleImpl(java.lang.String userSource, java.lang.String oldName, java.lang.String newName) throws java.lang.Exception
- Specified by:
editRoleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
removeRoleImpl
protected UIResponse removeRoleImpl(java.lang.String userSource, java.lang.String role) throws java.lang.Exception
- Specified by:
removeRoleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getRolesImpl
protected java.util.Collection<java.lang.String> getRolesImpl(java.lang.String userSource) throws java.lang.Exception- Specified by:
getRolesImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getScheduleImpl
@Nullable protected AbstractScheduleModel getScheduleImpl(java.lang.String scheduleName) throws java.lang.Exception
- Specified by:
getScheduleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getSchedulesImpl
protected java.util.Collection<AbstractScheduleModel> getSchedulesImpl() throws java.lang.Exception
- Specified by:
getSchedulesImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getScheduleNamesImpl
protected java.util.Collection<java.lang.String> getScheduleNamesImpl() throws java.lang.Exception- Specified by:
getScheduleNamesImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
removeScheduleImpl
protected UIResponse removeScheduleImpl(java.lang.String schedule) throws java.lang.Exception
- Specified by:
removeScheduleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
editScheduleImpl
protected UIResponse editScheduleImpl(java.lang.String scheduleName, AbstractScheduleModel schedule) throws java.lang.Exception
- Specified by:
editScheduleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
addScheduleImpl
protected UIResponse addScheduleImpl(AbstractScheduleModel schedule) throws java.lang.Exception
- Specified by:
addScheduleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
addCompositeScheduleImpl
protected UIResponse addCompositeScheduleImpl(java.lang.String name, java.lang.String scheduleOne, java.lang.String scheduleTwo, java.lang.String description) throws java.lang.Exception
- Specified by:
addCompositeScheduleImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getHolidayImpl
protected HolidayModel getHolidayImpl(java.lang.String holidayName) throws java.lang.Exception
- Specified by:
getHolidayImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getHolidayNamesImpl
protected java.util.Collection<java.lang.String> getHolidayNamesImpl() throws java.lang.Exception- Specified by:
getHolidayNamesImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getHolidaysImpl
protected java.util.Collection<HolidayModel> getHolidaysImpl() throws java.lang.Exception
- Specified by:
getHolidaysImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
removeHolidayImpl
protected UIResponse removeHolidayImpl(java.lang.String holidayName) throws java.lang.Exception
- Specified by:
removeHolidayImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
editHolidayImpl
protected UIResponse editHolidayImpl(java.lang.String holidayName, HolidayModel holiday) throws java.lang.Exception
- Specified by:
editHolidayImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
addHolidayImpl
protected UIResponse addHolidayImpl(HolidayModel holiday) throws java.lang.Exception
- Specified by:
addHolidayImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
isUserScheduledImpl
protected java.lang.Boolean isUserScheduledImpl(User user, long date) throws java.lang.Exception
- Specified by:
isUserScheduledImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
getScheduledUsersImpl
protected java.util.Collection<User> getScheduledUsersImpl(java.lang.String userSource, long date) throws java.lang.Exception
- Specified by:
getScheduledUsersImplin classAbstractUserUtilities- Throws:
java.lang.Exception
-
-