Java 类ims.core.vo.GenericIdentifierVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private GenericIdentifierVoCollection copyGenericVoCollection(GenericIdentifierVoCollection coll)
{
    if (coll == null)
        return null;

    GenericIdentifierVoCollection ret = new GenericIdentifierVoCollection();
    for (int i = 0; i < coll.size(); i++)
    {
        GenericIdentifierVo src = coll.get(i);
        GenericIdentifierVo dst = new GenericIdentifierVo();
        dst.setClassName(src.getClassName());
        dst.setClassType(src.getClassType());
        dst.setInstanceId(src.getInstanceId());
        dst.setIsRIE(Boolean.FALSE);
        ret.add(dst);
    }
    return ret;
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdAssessmentsSelectionChanged() throws PresentationLogicException
{
    Object val;
    if (form.treNav().getSelectedNode() != null)
    {
        val = form.treNav().getSelectedNode().getValue();
        if (val instanceof AppNavFormVo)
        {
            AppNavFormVo navForm = (AppNavFormVo)val;
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.grdAssessments().getValue();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.grdAssessments().getSelectedRow().getAssessmentName());
            populateNavigation(form.getLocalContext().getSelectedNav());
        }
    }
    form.grdAssessments().setEnabled(false);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if(formName.equals(form.getForms().Core.ReportTemplate) && result.equals(DialogResult.OK))
    {
        Object val = form.treNav().getValue();

        AppNavFormVo navForm = addAppNavFormVo(getReportViewerForm(), val);
        if (navForm != null)
        {
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.getGlobalContext().Core.getReportTemplateRef();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
            populateNavigation(form.getLocalContext().getSelectedNav());

            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
        }
        populateNavigation(form.getLocalContext().getSelectedNav());
    }
}
项目:AvoinApotti    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:AvoinApotti    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private GenericIdentifierVoCollection copyGenericVoCollection(GenericIdentifierVoCollection coll)
{
    if (coll == null)
        return null;

    GenericIdentifierVoCollection ret = new GenericIdentifierVoCollection();
    for (int i = 0; i < coll.size(); i++)
    {
        GenericIdentifierVo src = coll.get(i);
        GenericIdentifierVo dst = new GenericIdentifierVo();
        dst.setClassName(src.getClassName());
        dst.setClassType(src.getClassType());
        dst.setInstanceId(src.getInstanceId());
        dst.setIsRIE(Boolean.FALSE);
        ret.add(dst);
    }
    return ret;
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdAssessmentsSelectionChanged() throws PresentationLogicException
{
    Object val;
    if (form.treNav().getSelectedNode() != null)
    {
        val = form.treNav().getSelectedNode().getValue();
        if (val instanceof AppNavFormVo)
        {
            AppNavFormVo navForm = (AppNavFormVo)val;
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.grdAssessments().getValue();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.grdAssessments().getSelectedRow().getAssessmentName());
            populateNavigation(form.getLocalContext().getSelectedNav());
        }
    }
    form.grdAssessments().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if(formName.equals(form.getForms().Core.ReportTemplate) && result.equals(DialogResult.OK))
    {
        Object val = form.treNav().getValue();

        AppNavFormVo navForm = addAppNavFormVo(getReportViewerForm(), val);
        if (navForm != null)
        {
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.getGlobalContext().Core.getReportTemplateRef();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
            populateNavigation(form.getLocalContext().getSelectedNav());

            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
        }
        populateNavigation(form.getLocalContext().getSelectedNav());
    }
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private GenericIdentifierVoCollection copyGenericVoCollection(GenericIdentifierVoCollection coll)
{
    if (coll == null)
        return null;

    GenericIdentifierVoCollection ret = new GenericIdentifierVoCollection();
    for (int i = 0; i < coll.size(); i++)
    {
        GenericIdentifierVo src = coll.get(i);
        GenericIdentifierVo dst = new GenericIdentifierVo();
        dst.setClassName(src.getClassName());
        dst.setClassType(src.getClassType());
        dst.setInstanceId(src.getInstanceId());
        dst.setIsRIE(Boolean.FALSE);
        ret.add(dst);
    }
    return ret;
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdAssessmentsSelectionChanged() throws PresentationLogicException
{
    Object val;
    if (form.treNav().getSelectedNode() != null)
    {
        val = form.treNav().getSelectedNode().getValue();
        if (val instanceof AppNavFormVo)
        {
            AppNavFormVo navForm = (AppNavFormVo)val;
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.grdAssessments().getValue();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.grdAssessments().getSelectedRow().getAssessmentName());
            populateNavigation(form.getLocalContext().getSelectedNav());
        }
    }
    form.grdAssessments().setEnabled(false);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if(formName.equals(form.getForms().Core.ReportTemplate) && result.equals(DialogResult.OK))
    {
        Object val = form.treNav().getValue();

        AppNavFormVo navForm = addAppNavFormVo(getReportViewerForm(), val);
        if (navForm != null)
        {
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.getGlobalContext().Core.getReportTemplateRef();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
            populateNavigation(form.getLocalContext().getSelectedNav());

            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
        }
        populateNavigation(form.getLocalContext().getSelectedNav());
    }
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openMAXIMS    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}
项目:openmaxims-linux    文件:Logic.java   
private GenericIdentifierVoCollection copyGenericVoCollection(GenericIdentifierVoCollection coll)
{
    if (coll == null)
        return null;

    GenericIdentifierVoCollection ret = new GenericIdentifierVoCollection();
    for (int i = 0; i < coll.size(); i++)
    {
        GenericIdentifierVo src = coll.get(i);
        GenericIdentifierVo dst = new GenericIdentifierVo();
        dst.setClassName(src.getClassName());
        dst.setClassType(src.getClassType());
        dst.setInstanceId(src.getInstanceId());
        dst.setIsRIE(Boolean.FALSE);
        ret.add(dst);
    }
    return ret;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onGrdAssessmentsSelectionChanged() throws PresentationLogicException
{
    Object val;
    if (form.treNav().getSelectedNode() != null)
    {
        val = form.treNav().getSelectedNode().getValue();
        if (val instanceof AppNavFormVo)
        {
            AppNavFormVo navForm = (AppNavFormVo)val;
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.grdAssessments().getValue();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.grdAssessments().getSelectedRow().getAssessmentName());
            populateNavigation(form.getLocalContext().getSelectedNav());
        }
    }
    form.grdAssessments().setEnabled(false);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if(formName.equals(form.getForms().Core.ReportTemplate) && result.equals(DialogResult.OK))
    {
        Object val = form.treNav().getValue();

        AppNavFormVo navForm = addAppNavFormVo(getReportViewerForm(), val);
        if (navForm != null)
        {
            GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
            ValueObjectRef refVo = form.getGlobalContext().Core.getReportTemplateRef();
            GenericIdentifierVo genVo = new GenericIdentifierVo();
            genVo.setInstanceId(refVo.getBoId());
            genVo.setClassName(refVo.getClass().getName());
            coll.add(genVo);
            navForm.setLinkedClasses(coll);
            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
            populateNavigation(form.getLocalContext().getSelectedNav());

            navForm.setNodeText(form.getGlobalContext().Core.getTemplate());
        }
        populateNavigation(form.getLocalContext().getSelectedNav());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private AppNavFormVo createFormForAssessment(ValueObjectRef refVo, AppFormVo assesmentForm)
{
    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(assesmentForm);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();

    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(refVo.getBoId());
    genVo.setClassName(refVo.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    newForm.setNodeText((refVo instanceof GraphicAssessmentShortVo) ? ((GraphicAssessmentShortVo) refVo).getName() : (refVo instanceof UserAssessmentLiteVo) ? ((UserAssessmentLiteVo) refVo).getName() : null);
    return newForm;
}
项目:openmaxims-linux    文件:Logic.java   
private AppNavFormVo createFormForReport(ReportTemplateLiteVo rep, AppFormVo reportForm)
{

    AppNavFormVo newForm = new AppNavFormVo();
    newForm.setForm(reportForm);
    newForm.setLinkedClasses(null);
    GenericIdentifierVoCollection coll = new GenericIdentifierVoCollection();
    GenericIdentifierVo genVo = new GenericIdentifierVo();
    genVo.setInstanceId(rep.getBoId());
    genVo.setClassName(rep.getClass().getName());
    coll.add(genVo);
    newForm.setLinkedClasses(coll);
    newForm.setNodeText(rep.getName());

    newForm.setAccessForEpisEnd(FormReadWrite.WRITE);
    newForm.setAccessForRip(FormReadWrite.WRITE);
    newForm.setIsReadOnly(false);
    return newForm;
}