Class ADRepositoryHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.ADRepositoryHelper
Represents the repository.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBusServerInfoAsJSON(SrvContext srvCtx) returns the server info that is published to the bus.static ARG_ModifyInactivitygetModifyInactivity(SrvContext srvCtx) Returns the inactivity information.static ARG_ModifyUpdategetModifyUpdate(SrvContext srvCtx) Returns the update information.static ADRepositorygetSelf(SrvContext srvCtx) Returns the repository itself.static ARG_ShutdownInfogetShutdown(SrvContext srvCtx) Returns the shutdown information.static voidmodifyInactivity(SrvContext srvCtx, boolean deleteAuto, int timeUser, int timeRepository) Use to change the inactivity behavior.static voidmodifySingleSignOn(SrvContext srvCtx, boolean item) Use to change the single sign-on flag.static voidmodifyUpdate(SrvContext srvCtx, int interval, List<String> seqTime) Use to change the update behavior.static ARG_OccupiedResourcesoccupiedResources(SrvContext srvCtx) Calculates the occupied resources of this repository and updates the correspondig properties in this repository.
-
Method Details
-
getBusServerInfoAsJSON
public static String getBusServerInfoAsJSON(SrvContext srvCtx) throws InoNetException, SrvErrorException returns the server info that is published to the bus.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
getSelf
Returns the repository itself.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
getModifyInactivity
public static ARG_ModifyInactivity getModifyInactivity(SrvContext srvCtx) throws InoNetException, SrvErrorException Returns the inactivity information.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
getModifyUpdate
public static ARG_ModifyUpdate getModifyUpdate(SrvContext srvCtx) throws InoNetException, SrvErrorException Returns the update information.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
getShutdown
public static ARG_ShutdownInfo getShutdown(SrvContext srvCtx) throws InoNetException, SrvErrorException Returns the shutdown information.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
modifyInactivity
public static void modifyInactivity(SrvContext srvCtx, boolean deleteAuto, int timeUser, int timeRepository) throws InoNetException, SrvErrorException Use to change the inactivity behavior.- Parameters:
srvCtx- The context of the related innovator server.deleteAuto- Delete inactive users automaticallytimeUser- Duration in minutes until the user becomes inactivetimeRepository- Duration in hours until the repository becomes inactive and shuts down- Throws:
InoNetExceptionSrvErrorException
-
modifySingleSignOn
public static void modifySingleSignOn(SrvContext srvCtx, boolean item) throws InoNetException, SrvErrorException Use to change the single sign-on flag. All logins in models will be deleted!- Parameters:
srvCtx- The context of the related innovator server.item-- Throws:
InoNetExceptionSrvErrorException
-
modifyUpdate
public static void modifyUpdate(SrvContext srvCtx, int interval, List<String> seqTime) throws InoNetException, SrvErrorException Use to change the update behavior.- Parameters:
srvCtx- The context of the related innovator server.interval- Update interval in minutesseqTime- Sequence of update times- Throws:
InoNetExceptionSrvErrorException
-
occupiedResources
public static ARG_OccupiedResources occupiedResources(SrvContext srvCtx) throws InoNetException, SrvErrorException Calculates the occupied resources of this repository and updates the correspondig properties in this repository.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-