Class ClientUserUtilities
- java.lang.Object
-
- com.inductiveautomation.ignition.common.script.builtin.AbstractUserUtilities
-
- com.inductiveautomation.factorypmi.application.script.builtin.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 UIResponseaddHolidayImpl(HolidayModel holiday)protected UIResponseaddRoleImpl(java.lang.String userSource, java.lang.String role)protected UIResponseaddScheduleImpl(AbstractScheduleModel schedule)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 HolidayModelgetHolidayImpl(java.lang.String holidayName)protected java.util.Collection<java.lang.String>getHolidayNamesImpl()protected java.util.Collection<HolidayModel>getHolidaysImpl()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)-
Methods inherited from class com.inductiveautomation.ignition.common.script.builtin.AbstractUserUtilities
addHoliday, addRole, addSchedule, editHoliday, editRole, editSchedule, getHoliday, getHolidayNames, getHolidays, getRoles, getSchedule, getScheduledUsers, getScheduledUsers, getScheduledUsers, getScheduleNames, getSchedules, getUser, getUsers, isUserScheduled, isUserScheduled, isUserScheduled, removeHoliday, removeRole, removeSchedule
-
-
-
-
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
-
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
-
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
-
-