Class MESectionHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2model.MESectionHelper
-
public abstract class MESectionHelper extends java.lang.Object
This is a utility class for MESection that provides static methods for creation or other purposes.- See Also:
MESection
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assignSectionLoginAble(SrvContext srvCtx, ELElement item)
Assigns thisMESection
to theADLoginAble
as login able section.static MESection
create(SrvContext srvCtx, MESection ohSection, java.lang.String strName)
Create a new section.static java.util.List<ARG_SectionEntry>
getSectionsList(SrvContext srvCtx, boolean item)
Returns all sections as list.
-
-
-
Method Detail
-
getSectionsList
public static java.util.List<ARG_SectionEntry> getSectionsList(SrvContext srvCtx, boolean item) throws InoNetException, SrvErrorException
Returns all sections as list. Each list entry contains a section with name. The parent is set only for nested sections. If the parameter is true the list is restricted to sections with access for the actual login.- Parameters:
srvCtx
- The context of the related innovator server.item
-- Throws:
InoNetException
SrvErrorException
-
assignSectionLoginAble
public static void assignSectionLoginAble(SrvContext srvCtx, ELElement item) throws InoNetException, SrvErrorException
Assigns thisMESection
to theADLoginAble
as login able section.- Parameters:
srvCtx
- The context of the related innovator server.item
- ELElement Optional Element- Throws:
InoNetException
SrvErrorException
-
create
public static MESection create(SrvContext srvCtx, MESection ohSection, java.lang.String strName) throws InoNetException, SrvErrorException
Create a new section. If a section is specified the new section is nested within the specified one. Otherwise the section is created within the model. The specified name must me unique within in the namespace (specified section or model). If the name is empty a default name is used.- Parameters:
srvCtx
- The context of the related innovator server.ohSection
- owner for a nested sectionstrName
- name for a new section- Throws:
InoNetException
SrvErrorException
-
-