de.mid.innovator.srv2api.icw2ac
Class ACPartitionHelper

java.lang.Object
  extended by de.mid.innovator.srv2api.icw2ac.ACPartitionHelper

public abstract class ACPartitionHelper
extends Object

An activity partition is a kind of activity group that identifies actions that have common characteristics. Partitions divide the nodes and edges to constrain and show a view of the contained nodes. Partitions can share contents.

See Also:
ACPartition

Method Summary
static void assignPartitionsToNodes(SrvContext srvCtx, List<? extends ACActivityNode> seqNode, List<? extends ACActivityGroup> seqGroup)
          Assigns each of the nodes to all of the partitions without removing any nodes from the partitions.
static ACPartition create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer)
          Create a new Activity Partition with template and container.
static ACPartition create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer)
          Create a new Activity Partition with stereotype and container.
static ACPartition insertAtSelection(SrvContext srvCtx, MMCreateTemplate ohTemplatePartition, List<? extends ACPartition> seqPartitionSelection, K_INSERT kInsertAt)
          Inserts a new ACPartition using a partition template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assignPartitionsToNodes

public static void assignPartitionsToNodes(SrvContext srvCtx,
                                           List<? extends ACActivityNode> seqNode,
                                           List<? extends ACActivityGroup> seqGroup)
                                    throws InoNetException,
                                           SrvErrorException
Assigns each of the nodes to all of the partitions without removing any nodes from the partitions. Assignments are, therefore, only added but not deleted.

Parameters:
srvCtx - The context of the related innovator server.
seqNode -
seqGroup -
Throws:
InoNetException
SrvErrorException

create

public static ACPartition create(SrvContext srvCtx,
                                 MMCreateTemplate ohTemplate,
                                 ELContainerAble ohContainer)
                          throws InoNetException,
                                 SrvErrorException
Create a new Activity Partition with template and container.

Parameters:
srvCtx - The context of the related innovator server.
ohTemplate - Template for the new element
ohContainer - Container for the new element
Throws:
InoNetException
SrvErrorException

create

public static ACPartition create(SrvContext srvCtx,
                                 MMStereotype ohStereotype,
                                 ELContainerAble ohContainer)
                          throws InoNetException,
                                 SrvErrorException
Create a new Activity Partition with stereotype and container.

Parameters:
srvCtx - The context of the related innovator server.
ohStereotype - Stereotype for the new element
ohContainer - Container for the new element
Throws:
InoNetException
SrvErrorException

insertAtSelection

public static ACPartition insertAtSelection(SrvContext srvCtx,
                                            MMCreateTemplate ohTemplatePartition,
                                            List<? extends ACPartition> seqPartitionSelection,
                                            K_INSERT kInsertAt)
                                     throws InoNetException,
                                            SrvErrorException
Inserts a new ACPartition using a partition template. If the ACPartition has to be inserted relative to one or more other partitions, these partitions, and the insertion position may be specified.

Parameters:
srvCtx - The context of the related innovator server.
ohTemplatePartition - the template for the new partition
seqPartitionSelection - The list of selected partitions (mandatory, at least one partition).
kInsertAt - specifies where to insert the new relative to the selected partition
Throws:
InoNetException
SrvErrorException