Class ELElementHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2elem.ELElementHelper
-
public abstract class ELElementHelper extends java.lang.Object
This is the root class of types contained in the Innovator eXcellence metamodel.- See Also:
ELElement
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ARG_InfoBulkResult>
getInfoBulkSequence(SrvContext srvCtx, java.util.List<ARG_InfoBulkIn> seqInfoBulk)
Returns the result of the application of set of infos to a collection of instances.static <T extends ELElement>
java.util.List<T>getValidList(java.lang.Class<T> returnType, SrvContext srvCtx, java.util.List<? extends ELElement> seq)
Returns unique list of all valid elements of the argument list.static java.util.List<ARG_ViewBulkResult>
getViewBulkSequence(SrvContext srvCtx, java.util.List<ARG_ViewBulkIn> seqViewBulk)
Returns the result of the application of set of views to a collection of instances.static java.util.List<ARG_VOclInfo>
getVoclInstantiate(SrvContext srvCtx, java.lang.Class<? extends ELObject> item)
Returns a sequence of infos for the instantiable types according to the input type.static java.util.List<ARG_VOclInfo>
getVoclInstantiateExisting(SrvContext srvCtx, java.lang.Class<? extends ELObject> item)
Returns a sequence of infos for the instantiable types according to the input type, which has existing instances.static <T extends ELElement>
java.util.List<T>getXFind(java.lang.Class<T> returnType, SrvContext srvCtx, java.util.List<? extends ELElement> seqSel, boolean recursive, boolean withConfig, boolean sortIt, ARG_XFindTerm valTerm)
command for search termsstatic void
lockUnit(SrvContext srvCtx, java.util.List<? extends ELElement> sel)
Creates a lock for the lock unit of the current object.static void
unlockUnit(SrvContext srvCtx, java.util.List<? extends ELElement> sel)
Deletes the lock for lock unit of the current object.
-
-
-
Method Detail
-
lockUnit
public static void lockUnit(SrvContext srvCtx, java.util.List<? extends ELElement> sel) throws InoNetException, SrvErrorException
Creates a lock for the lock unit of the current object.- Parameters:
srvCtx
- The context of the related innovator server.sel
- all objects that will be modified.- Throws:
InoNetException
SrvErrorException
-
unlockUnit
public static void unlockUnit(SrvContext srvCtx, java.util.List<? extends ELElement> sel) throws InoNetException, SrvErrorException
Deletes the lock for lock unit of the current object.- Parameters:
srvCtx
- The context of the related innovator server.sel
- all objects that will be modified.- Throws:
InoNetException
SrvErrorException
-
getInfoBulkSequence
public static java.util.List<ARG_InfoBulkResult> getInfoBulkSequence(SrvContext srvCtx, java.util.List<ARG_InfoBulkIn> seqInfoBulk) throws InoNetException, SrvErrorException
Returns the result of the application of set of infos to a collection of instances.- Parameters:
srvCtx
- The context of the related innovator server.seqInfoBulk
- Sequence of InfoBulk specifications- Throws:
InoNetException
SrvErrorException
-
getValidList
public static <T extends ELElement> java.util.List<T> getValidList(java.lang.Class<T> returnType, SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Returns unique list of all valid elements of the argument list.- Parameters:
returnType
- Specifies the type of elements to be returned.srvCtx
- The context of the related innovator server.seq
- list of elements (ignore invalid)- Throws:
InoNetException
SrvErrorException
-
getViewBulkSequence
public static java.util.List<ARG_ViewBulkResult> getViewBulkSequence(SrvContext srvCtx, java.util.List<ARG_ViewBulkIn> seqViewBulk) throws InoNetException, SrvErrorException
Returns the result of the application of set of views to a collection of instances.- Parameters:
srvCtx
- The context of the related innovator server.seqViewBulk
- Sequence of ViewBulk specifications- Throws:
InoNetException
SrvErrorException
-
getVoclInstantiateExisting
public static java.util.List<ARG_VOclInfo> getVoclInstantiateExisting(SrvContext srvCtx, java.lang.Class<? extends ELObject> item) throws InoNetException, SrvErrorException
Returns a sequence of infos for the instantiable types according to the input type, which has existing instances.- Parameters:
srvCtx
- The context of the related innovator server.item
-- Throws:
InoNetException
SrvErrorException
-
getVoclInstantiate
public static java.util.List<ARG_VOclInfo> getVoclInstantiate(SrvContext srvCtx, java.lang.Class<? extends ELObject> item) throws InoNetException, SrvErrorException
Returns a sequence of infos for the instantiable types according to the input type.- Parameters:
srvCtx
- The context of the related innovator server.item
-- Throws:
InoNetException
SrvErrorException
-
getXFind
public static <T extends ELElement> java.util.List<T> getXFind(java.lang.Class<T> returnType, SrvContext srvCtx, java.util.List<? extends ELElement> seqSel, boolean recursive, boolean withConfig, boolean sortIt, ARG_XFindTerm valTerm) throws InoNetException, SrvErrorException
command for search terms- Parameters:
returnType
- Specifies the type of elements to be returned.srvCtx
- The context of the related innovator server.seqSel
- elements to find for or empty if allrecursive
- expand selection with its recursive son elementswithConfig
- search in configuration if seqSel is emptysortIt
- sort result according to the namespace treevalTerm
- search term- Throws:
InoNetException
SrvErrorException
-
-