Java 类ims.admin.vo.AppNavigationVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void copySelectedNav()
{
    AppNavigationVo navVo = form.getLocalContext().getSelectedNav();
    AppNavigationVo newNavVo = new AppNavigationVo();
    newNavVo.setComment(navVo.getComment());
    newNavVo.setIsActive(Boolean.TRUE);
    newNavVo.setIsRIE(Boolean.FALSE);
    newNavVo.setNavigationName("Copy of " + navVo.getNavigationName());
    newNavVo.setPatientSearchForm(navVo.getPatientSearchForm());
    newNavVo.setStartForm(navVo.getStartForm());
    newNavVo.setRootGroups(copyRootGroupColl(navVo.getRootGroups()));

    form.getLocalContext().setSelectedNav(newNavVo);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);     
}
项目:AvoinApotti    文件:Logic.java   
private void populateTree(AppNavigationVo value)
{

    form.treNav().clear();
    if (value == null)
        return;
    AppNavRootGroupVoCollection rootGroups = value.getRootGroups();
    if (rootGroups == null)
    {
        return;
    }
    for (int i = 0; i < rootGroups.size(); i++)
    {
        createTree(rootGroups.get(i), null);

    }
    form.treNav().collapseAll();
    form.treNav().setValue(form.getLocalContext().getSelectedTreeValue());
    if (form.treNav().getSelectedNode() != null)
        form.treNav().getSelectedNode().setExpanded(true);

}
项目:AvoinApotti    文件:Logic.java   
private AppNavigationVo getClone(AppNavigationVo appNav)
{
    if (appNav == null)
        return null;
    AppNavigationVo result = (AppNavigationVo) appNav.clone();
    result.clearIDAndVersion();
    result.setNavigationName("Copy of " + result.getNavigationName());
    result.setRootGroups(new AppNavRootGroupVoCollection());
    if (appNav.getRootGroupsIsNotNull())
    {
        for (int i = 0; i < appNav.getRootGroups().size(); i++)
        {
            result.getRootGroups().add(getClone(appNav.getRootGroups().get(i)));
        }
    }
    return result;
}
项目:AvoinApotti    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:AvoinApotti    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void copySelectedNav()
{
    AppNavigationVo navVo = form.getLocalContext().getSelectedNav();
    AppNavigationVo newNavVo = new AppNavigationVo();
    newNavVo.setComment(navVo.getComment());
    newNavVo.setIsActive(Boolean.TRUE);
    newNavVo.setIsRIE(Boolean.FALSE);
    newNavVo.setNavigationName("Copy of " + navVo.getNavigationName());
    newNavVo.setPatientSearchForm(navVo.getPatientSearchForm());
    newNavVo.setStartForm(navVo.getStartForm());
    newNavVo.setRootGroups(copyRootGroupColl(navVo.getRootGroups()));

    form.getLocalContext().setSelectedNav(newNavVo);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);     
}
项目:openMAXIMS    文件:Logic.java   
private void populateTree(AppNavigationVo value)
{

    form.treNav().clear();
    if (value == null)
        return;
    AppNavRootGroupVoCollection rootGroups = value.getRootGroups();
    if (rootGroups == null)
    {
        return;
    }
    for (int i = 0; i < rootGroups.size(); i++)
    {
        createTree(rootGroups.get(i), null);

    }
    form.treNav().collapseAll();
    form.treNav().setValue(form.getLocalContext().getSelectedTreeValue());
    if (form.treNav().getSelectedNode() != null)
        form.treNav().getSelectedNode().setExpanded(true);

}
项目:openMAXIMS    文件:Logic.java   
private AppNavigationVo getClone(AppNavigationVo appNav)
{
    if (appNav == null)
        return null;
    AppNavigationVo result = (AppNavigationVo) appNav.clone();
    result.clearIDAndVersion();
    result.setNavigationName("Copy of " + result.getNavigationName());
    result.setRootGroups(new AppNavRootGroupVoCollection());
    if (appNav.getRootGroupsIsNotNull())
    {
        for (int i = 0; i < appNav.getRootGroups().size(); i++)
        {
            result.getRootGroups().add(getClone(appNav.getRootGroups().get(i)));
        }
    }
    return result;
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void copySelectedNav()
{
    AppNavigationVo navVo = form.getLocalContext().getSelectedNav();
    AppNavigationVo newNavVo = new AppNavigationVo();
    newNavVo.setComment(navVo.getComment());
    newNavVo.setIsActive(Boolean.TRUE);
    newNavVo.setIsRIE(Boolean.FALSE);
    newNavVo.setNavigationName("Copy of " + navVo.getNavigationName());
    newNavVo.setPatientSearchForm(navVo.getPatientSearchForm());
    newNavVo.setStartForm(navVo.getStartForm());
    newNavVo.setRootGroups(copyRootGroupColl(navVo.getRootGroups()));

    form.getLocalContext().setSelectedNav(newNavVo);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);     
}
项目:openMAXIMS    文件:Logic.java   
private void populateTree(AppNavigationVo value)
{

    form.treNav().clear();
    if (value == null)
        return;
    AppNavRootGroupVoCollection rootGroups = value.getRootGroups();
    if (rootGroups == null)
    {
        return;
    }
    for (int i = 0; i < rootGroups.size(); i++)
    {
        createTree(rootGroups.get(i), null);

    }
    form.treNav().collapseAll();
    form.treNav().setValue(form.getLocalContext().getSelectedTreeValue());
    if (form.treNav().getSelectedNode() != null)
        form.treNav().getSelectedNode().setExpanded(true);

}
项目:openMAXIMS    文件:Logic.java   
private AppNavigationVo getClone(AppNavigationVo appNav)
{
    if (appNav == null)
        return null;
    AppNavigationVo result = (AppNavigationVo) appNav.clone();
    result.clearIDAndVersion();
    result.setNavigationName("Copy of " + result.getNavigationName());
    result.setRootGroups(new AppNavRootGroupVoCollection());
    if (appNav.getRootGroupsIsNotNull())
    {
        for (int i = 0; i < appNav.getRootGroups().size(); i++)
        {
            result.getRootGroups().add(getClone(appNav.getRootGroups().get(i)));
        }
    }
    return result;
}
项目:openMAXIMS    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openMAXIMS    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void copySelectedNav()
{
    AppNavigationVo navVo = form.getLocalContext().getSelectedNav();
    AppNavigationVo newNavVo = new AppNavigationVo();
    newNavVo.setComment(navVo.getComment());
    newNavVo.setIsActive(Boolean.TRUE);
    newNavVo.setIsRIE(Boolean.FALSE);
    newNavVo.setNavigationName("Copy of " + navVo.getNavigationName());
    newNavVo.setPatientSearchForm(navVo.getPatientSearchForm());
    newNavVo.setStartForm(navVo.getStartForm());
    newNavVo.setRootGroups(copyRootGroupColl(navVo.getRootGroups()));

    form.getLocalContext().setSelectedNav(newNavVo);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);     
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTree(AppNavigationVo value)
{

    form.treNav().clear();
    if (value == null)
        return;
    AppNavRootGroupVoCollection rootGroups = value.getRootGroups();
    if (rootGroups == null)
    {
        return;
    }
    for (int i = 0; i < rootGroups.size(); i++)
    {
        createTree(rootGroups.get(i), null);

    }
    form.treNav().collapseAll();
    form.treNav().setValue(form.getLocalContext().getSelectedTreeValue());
    if (form.treNav().getSelectedNode() != null)
        form.treNav().getSelectedNode().setExpanded(true);

}
项目:openmaxims-linux    文件:Logic.java   
private AppNavigationVo getClone(AppNavigationVo appNav)
{
    if (appNav == null)
        return null;
    AppNavigationVo result = (AppNavigationVo) appNav.clone();
    result.clearIDAndVersion();
    result.setNavigationName("Copy of " + result.getNavigationName());
    result.setRootGroups(new AppNavRootGroupVoCollection());
    if (appNav.getRootGroupsIsNotNull())
    {
        for (int i = 0; i < appNav.getRootGroups().size(); i++)
        {
            result.getRootGroups().add(getClone(appNav.getRootGroups().get(i)));
        }
    }
    return result;
}
项目:openmaxims-linux    文件:NavigationAdminProtImpl.java   
public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException 
{

    if (!appnavigationVo.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = (DomainFactory) this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }

    return AppNavigationVoAssembler.create(domNav);
}
项目:openmaxims-linux    文件:NavigationAdminImpl.java   
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException
{
    if (!nav.isValidated())
        throw new DomainRuntimeException("Navigation VO param was not validated ");

    DomainFactory factory = this.getDomainFactory();

    AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav);

    try
    {
        factory.save(domNav);
    }
    catch(UnqViolationUncheckedException e)
    {
        throw new UniqueKeyViolationException("A Navigation with the same name already exists.");
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addSecondGroup(TreeNode rootNode, AppNavSecondGroupVo sg, AppNavigationVo nav)
{
    TreeNode secNode = rootNode.getNodes().add(sg, sg.getGroupName());
    secNode.setExpandedImage(form.getImages().Core.CareSpell);
    secNode.setCollapsedImage(form.getImages().Core.CareSpell);
    secNode.setSelectedImage(form.getImages().Core.CareSpell);

    for (int k = 0; k < sg.getForms().size(); k++)
    {
        addNavForm(secNode, sg.getForms().get(k), nav);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addSecondGroup(TreeNode rootNode, AppNavSecondGroupVo sg, AppNavigationVo nav)
{
    TreeNode secNode = rootNode.getNodes().add(sg, sg.getGroupName(), SEC_NODE, new int[]{ROOT_NODE}, true);
    secNode.setExpandedImage(form.getImages().Core.CareSpell);
    secNode.setCollapsedImage(form.getImages().Core.CareSpell);
    secNode.setSelectedImage(form.getImages().Core.CareSpell);

    for (int k = 0; sg.getForms() != null && k < sg.getForms().size(); k++)
    {
        addNavForm(secNode, sg.getForms().get(k), nav);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    AppNavigationVo nav = new AppNavigationVo();
    form.txtNavName().setValue(null);
    form.qmbNavStartForm().setValue(null);
    form.qmbNavSearchForm().setValue(null);
    form.qmbNavStartForm().setEditedText(null);
    form.qmbNavSearchForm().setEditedText(null);
    nav.setRootGroups(new AppNavRootGroupVoCollection());
    form.getLocalContext().setSelectedNav(nav);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);
}
项目:AvoinApotti    文件:Logic.java   
private void setNavStartForm(AppNavFormVo navform)
{
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setStartForm(navform.getForm());
    populateNavigation(nav);
}
项目:AvoinApotti    文件:Logic.java   
private void setNavSearchForm(AppNavFormVo navform)
{
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setPatientSearchForm(navform.getForm());
    populateNavigation(nav);        
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbNavSearchFormValueChanged() throws PresentationLogicException
{
    AppFormVo appform = form.qmbNavSearchForm().getValue();
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setPatientSearchForm(appform);
    populateNavigation(nav);        


}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbNavStartFormValueChanged() throws PresentationLogicException
{
    AppFormVo appform = form.qmbNavStartForm().getValue();
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setStartForm(appform);
    populateNavigation(nav);        


}
项目:AvoinApotti    文件:Logic.java   
protected void onChkIsActiveValueChanged() throws PresentationLogicException
{
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;

    nav.setIsActive(Boolean.valueOf(form.chkIsActive().getValue()));
    populateNavigation(nav);        

}
项目:AvoinApotti    文件:Logic.java   
protected void populateScreenFromData(AppNavigationVo value)
{
    clearInstanceControls();
    super.populateScreenFromData(value);

    if (value == null)
        return;

    if (!value.getStyleIsNotNull())
    {
        form.cmbStyle().setValue(NavigationStyle.IMAGE);
    }
    if (value.getPatientSearchFormIsNotNull())
    {
        AppFormVo patientSearchForm = value.getPatientSearchForm();
        form.qmbNavSearchForm().newRow(patientSearchForm, patientSearchForm.isAlias() ? patientSearchForm.getAliasName() : patientSearchForm.getName());
        form.qmbNavSearchForm().setValue(patientSearchForm);
    }
    if (value.getStartFormIsNotNull())
    {
        AppFormVo startForm = value.getStartForm();
        form.qmbNavStartForm().newRow(startForm, startForm.isAlias() ? startForm.getAliasName() : startForm.getName());
        form.qmbNavStartForm().setValue(startForm);
    }

    populateTree(value);

}
项目:AvoinApotti    文件:Logic.java   
private void setNavSearchForm(AppNavFormVo navform)
{
    AppNavigationVo nav = populateDataFromScreen(form.getLocalContext().getSelectedNav());
    if (nav == null)
        return;
    nav.setPatientSearchForm(navform.getForm());
    populateScreenFromData(nav);
}
项目:AvoinApotti    文件:Logic.java   
private void setNavStartForm(AppNavFormVo navform)
{
    AppNavigationVo nav = populateDataFromScreen(form.getLocalContext().getSelectedNav());
    if (nav == null)
        return;
    nav.setStartForm(navform.getForm());
    populateScreenFromData(nav);
}
项目:AvoinApotti    文件:ApplicationRolesImpl.java   
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo)
{
    if (navRefVo == null)
        return null;

    return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo));
}
项目:AvoinApotti    文件:NavigationAdminProtImpl.java   
/**
* Gets a complet Navigation
*/
public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort)
{

    if (navShort == null || navShort.getID_AppNavigation() == null )
        return null;

    DomainFactory factory = (DomainFactory) getDomainFactory();
    AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation());
    return AppNavigationVoAssembler.create(appDO);

}
项目:openMAXIMS    文件:Logic.java   
private String[] validateUIRules(AppNavigationVo navigation, AppRoleVo role)
{
    List<String> uiErrors = new ArrayList<String>();

    for(int i=0; i<form.lyrRights().tabAlerts().dyngrdAlerts().getRows().size(); i++)
    {
        DynamicGridRow row = form.lyrRights().tabAlerts().dyngrdAlerts().getRows().get(i);

        if(row.getCells().get(getColumn(COL_ALERT)).getValue() != null && row.getCells().get(getColumn(COL_ACCESS)).getValue() == null)
        {
            uiErrors.add("Alert Access Right is mandatory.");
        }

        if(row.getCells().get(getColumn(COL_ALERT)).getValue() == null && row.getCells().get(getColumn(COL_ACCESS)).getValue() != null)
        {
            uiErrors.add("Alert Category is mandatory.");
        }
    }

    //WDEV-22749
    if (navigation != null && Boolean.FALSE.equals(navigation.getIsActive()) && Boolean.TRUE.equals(role.getIsActive()))
    {
        uiErrors.add("Selected navigation must be active.");
    }
    //WDEV-22749 ends here

    String[] uiResults = new String[uiErrors.size()];
    uiErrors.toArray(uiResults);

    return uiResults;
}
项目:openMAXIMS    文件:Logic.java   
private void addSecondGroup(TreeNode rootNode, AppNavSecondGroupVo sg, AppNavigationVo nav)
{
    TreeNode secNode = rootNode.getNodes().add(sg, sg.getGroupName());
    secNode.setExpandedImage(form.getImages().Core.CareSpell);
    secNode.setCollapsedImage(form.getImages().Core.CareSpell);
    secNode.setSelectedImage(form.getImages().Core.CareSpell);

    for (int k = 0; k < sg.getForms().size(); k++)
    {
        addNavForm(secNode, sg.getForms().get(k), nav);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addSecondGroup(TreeNode rootNode, AppNavSecondGroupVo sg, AppNavigationVo nav)
{
    TreeNode secNode = rootNode.getNodes().add(sg, sg.getGroupName(), SEC_NODE, new int[]{ROOT_NODE}, true);
    secNode.setExpandedImage(form.getImages().Core.CareSpell);
    secNode.setCollapsedImage(form.getImages().Core.CareSpell);
    secNode.setSelectedImage(form.getImages().Core.CareSpell);

    for (int k = 0; sg.getForms() != null && k < sg.getForms().size(); k++)
    {
        addNavForm(secNode, sg.getForms().get(k), nav);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    AppNavigationVo nav = new AppNavigationVo();
    form.txtNavName().setValue(null);
    form.qmbNavStartForm().setValue(null);
    form.qmbNavSearchForm().setValue(null);
    form.qmbNavStartForm().setEditedText(null);
    form.qmbNavSearchForm().setEditedText(null);
    nav.setRootGroups(new AppNavRootGroupVoCollection());
    form.getLocalContext().setSelectedNav(nav);
    populateNavigation(form.getLocalContext().getSelectedNav());
    setFormMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
private void setNavStartForm(AppNavFormVo navform)
{
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setStartForm(navform.getForm());
    populateNavigation(nav);
}
项目:openMAXIMS    文件:Logic.java   
private void setNavSearchForm(AppNavFormVo navform)
{
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setPatientSearchForm(navform.getForm());
    populateNavigation(nav);        
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbNavSearchFormValueChanged() throws PresentationLogicException
{
    AppFormVo appform = form.qmbNavSearchForm().getValue();
    AppNavigationVo nav = form.getLocalContext().getSelectedNav();
    if (nav == null)
        return;
    nav.setPatientSearchForm(appform);
    populateNavigation(nav);        


}