Class ELUUIDAbleHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2elem.ELUUIDAbleHelper
-
public abstract class ELUUIDAbleHelper extends java.lang.Object
a element that provides an uuid. UUIDs are unique within an Innovator model.- See Also:
ELUUIDAble
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assignNewUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> seqElem)
Assign every element a new uuid.static java.util.List<ARG_ElementUUID>
getElementOfUUIDList(SrvContext srvCtx, java.util.List<java.lang.String> seq)
Returns a list of elements and their uuids for each uuid of the input list.static <T extends ELUUIDAble>
java.util.List<T>getFindByUUID(java.lang.Class<T> returnType, SrvContext srvCtx, java.lang.String sIUUID, ELElement optADModel)
Returns the model elements described by the Innovator UUID, if they exist.static ARG_ModifyUUIDOclCmd
getModifyUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> element)
Returns a filled structure ARG_ModifyUUIDOclCmd for a bulk of UUIDAble elements, who's UUIDs should be new generated.static java.util.List<ARG_ElementUUID>
getSchemaElementOfUUIDList(SrvContext srvCtx, java.util.List<java.lang.String> seq)
Returns a list of elements and their uuids for each uuid of the input list.static java.util.List<ARG_ElementUUID>
getUUIDOfElementList(SrvContext srvCtx, java.util.List<? extends ELElement> seq)
Returns a list of elements and their uuids for each element of the input list.static void
modifyUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> element, java.util.List<java.lang.String> sUUID)
Sets the UUIDs for the elements specified in the input data structure.
-
-
-
Method Detail
-
getFindByUUID
public static <T extends ELUUIDAble> java.util.List<T> getFindByUUID(java.lang.Class<T> returnType, SrvContext srvCtx, java.lang.String sIUUID, ELElement optADModel) throws InoNetException, SrvErrorException
Returns the model elements described by the Innovator UUID, if they exist. If optModel model is specified, only the specified model's elements will be returned.- Parameters:
returnType
- Specifies the type of elements to be returned.srvCtx
- The context of the related innovator server.sIUUID
- Innovator UUID of elementoptADModel
- Optional: Restricting ADModel casted as ELElement- Throws:
InoNetException
SrvErrorException
-
getElementOfUUIDList
public static java.util.List<ARG_ElementUUID> getElementOfUUIDList(SrvContext srvCtx, java.util.List<java.lang.String> seq) throws InoNetException, SrvErrorException
Returns a list of elements and their uuids for each uuid of the input list.- Parameters:
srvCtx
- The context of the related innovator server.seq
-- Throws:
InoNetException
SrvErrorException
-
getSchemaElementOfUUIDList
public static java.util.List<ARG_ElementUUID> getSchemaElementOfUUIDList(SrvContext srvCtx, java.util.List<java.lang.String> seq) throws InoNetException, SrvErrorException
Returns a list of elements and their uuids for each uuid of the input list. The elements are contents ofELM2Schema
.- Parameters:
srvCtx
- The context of the related innovator server.seq
-- Throws:
InoNetException
SrvErrorException
-
getUUIDOfElementList
public static java.util.List<ARG_ElementUUID> getUUIDOfElementList(SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Returns a list of elements and their uuids for each element of the input list.- Parameters:
srvCtx
- The context of the related innovator server.seq
- List of ELElement- Throws:
InoNetException
SrvErrorException
-
getModifyUUID
public static ARG_ModifyUUIDOclCmd getModifyUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> element) throws InoNetException, SrvErrorException
Returns a filled structure ARG_ModifyUUIDOclCmd for a bulk of UUIDAble elements, who's UUIDs should be new generated. The structure should then be used in ModifyUUIDOclCmd to new set the UUIDs.- Parameters:
srvCtx
- The context of the related innovator server.element
- UUIDAble Element which UUID should be modified- Throws:
InoNetException
SrvErrorException
-
assignNewUUID
public static void assignNewUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> seqElem) throws InoNetException, SrvErrorException
Assign every element a new uuid.- Parameters:
srvCtx
- The context of the related innovator server.seqElem
- these elements gain a new uuid- Throws:
InoNetException
SrvErrorException
-
modifyUUID
public static void modifyUUID(SrvContext srvCtx, java.util.List<? extends ELUUIDAble> element, java.util.List<java.lang.String> sUUID) throws InoNetException, SrvErrorException
Sets the UUIDs for the elements specified in the input data structure. The data structure should be created byELUUIDAble
request ModifyUUIDOclReq.- Parameters:
srvCtx
- The context of the related innovator server.element
- UUIDAble Element which UUID should be modifiedsUUID
- corresponding UUID's- Throws:
InoNetException
SrvErrorException
-
-