de.mid.innovator.srv2api.icw2elem
Class ELElementHelper

java.lang.Object
  extended by de.mid.innovator.srv2api.icw2elem.ELElementHelper

public abstract class ELElementHelper
extends Object

This is the root class of types contained in the Innovator eXcellence metamodel.

See Also:
ELElement

Method Summary
static List<ARG_InfoBulkResult> getInfoBulkSequence(SrvContext srvCtx, List<ARG_InfoBulkIn> seqInfoBulk)
          Returns the result of the application of set of infos to a collection of instances.
static
<T extends ELElement>
List<T>
getValidList(Class<T> returnType, SrvContext srvCtx, List<? extends ELElement> seq)
          Returns unique list of all valid elements of the argument list.
static List<ARG_ViewBulkResult> getViewBulkSequence(SrvContext srvCtx, List<ARG_ViewBulkIn> seqViewBulk)
          Returns the result of the application of set of views to a collection of instances.
static List<ARG_VOclInfo> getVoclInstantiate(SrvContext srvCtx, Class<? extends ELObject> value)
          Returns a sequence of infos for the instantiable types according to the input type.
static List<ARG_VOclInfo> getVoclInstantiateExisting(SrvContext srvCtx, Class<? extends ELObject> value)
          Returns a sequence of infos for the instantiable types according to the input type, which has existing instances.
static
<T extends ELElement>
List<T>
getXFind(Class<T> returnType, SrvContext srvCtx, List<? extends ELElement> seqSel, boolean recursive, boolean withConfig, boolean sortIt, ARG_XFindTerm valTerm)
          command for search terms
static void lockUnit(SrvContext srvCtx, List<? extends ELElement> sel)
          Creates a lock for the lock unit of the current object.
static void unlockUnit(SrvContext srvCtx, List<? extends ELElement> sel)
          Deletes the lock for lock unit of the current object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfoBulkSequence

public static List<ARG_InfoBulkResult> getInfoBulkSequence(SrvContext srvCtx,
                                                           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> List<T> getValidList(Class<T> returnType,
                                                         SrvContext srvCtx,
                                                         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 List<ARG_ViewBulkResult> getViewBulkSequence(SrvContext srvCtx,
                                                           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

getVoclInstantiate

public static List<ARG_VOclInfo> getVoclInstantiate(SrvContext srvCtx,
                                                    Class<? extends ELObject> value)
                                             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.
value -
Throws:
InoNetException
SrvErrorException

getVoclInstantiateExisting

public static List<ARG_VOclInfo> getVoclInstantiateExisting(SrvContext srvCtx,
                                                            Class<? extends ELObject> value)
                                                     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.
value -
Throws:
InoNetException
SrvErrorException

getXFind

public static <T extends ELElement> List<T> getXFind(Class<T> returnType,
                                                     SrvContext srvCtx,
                                                     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 all
recursive - expand selection with its recursive son elements
withConfig - search in configuration if seqSel is empty
sortIt - sort result according to the namespace tree
valTerm - search term
Throws:
InoNetException
SrvErrorException

lockUnit

public static void lockUnit(SrvContext srvCtx,
                            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,
                              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