Java 类ims.ocrr.vo.SecurityLevelConfigVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void open()
{
    form.grdSecurity().getRows().clear();

    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = domain.listSecurityLevel();
    if (voCollSecurityLevelConfig == null)
        return;

    for (SecurityLevelConfigVo voSecurityLevelConfig : voCollSecurityLevelConfig)
    {
        grdSecurityRow row = form.grdSecurity().getRows().newRow();
        row.setColSecurityLevelDesc(voSecurityLevelConfig.getSecurityLevelDescription());
        row.setValue(voSecurityLevelConfig);
    }

    updateControlState();
}
项目:AvoinApotti    文件:SecurityLevelConfigImpl.java   
/**
* deleteSecurityLevel - delete record and then reorder the collection that remains
*/
public void deleteSecurityLevel(ims.ocrr.configuration.vo.SecurityLevelRefVo voSecurityLevel, SecurityLevelConfigVoCollection voCollSecurityLevel) throws ims.domain.exceptions.ForeignKeyViolationException, StaleObjectException
{
    if (voSecurityLevel == null)
        throw new CodingRuntimeException("voSecurityLevel is null in method deleteSecurityLevel");

    getDomainFactory().delete(getDomainFactory().getDomainObject(voSecurityLevel));

    //only reorder collection if records exist
    if(voCollSecurityLevel == null || voCollSecurityLevel.size() == 0)
        return;

    List lstSecurityLevel = SecurityLevelConfigVoAssembler.extractSecurityLevelList(getDomainFactory(), voCollSecurityLevel);
    if(lstSecurityLevel != null)
    {
        Iterator it = lstSecurityLevel.iterator();
        while(it.hasNext())
        {
            SecurityLevel doSecurityLevel =  (SecurityLevel)it.next();
            getDomainFactory().save(doSecurityLevel);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    form.grdSecurity().getRows().clear();

    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = domain.listSecurityLevel();
    if (voCollSecurityLevelConfig == null)
        return;

    for (SecurityLevelConfigVo voSecurityLevelConfig : voCollSecurityLevelConfig)
    {
        grdSecurityRow row = form.grdSecurity().getRows().newRow();
        row.setColSecurityLevelDesc(voSecurityLevelConfig.getSecurityLevelDescription());
        row.setValue(voSecurityLevelConfig);
    }

    updateControlState();
}
项目:openMAXIMS    文件:SecurityLevelConfigImpl.java   
/**
* deleteSecurityLevel - delete record and then reorder the collection that remains
*/
public void deleteSecurityLevel(ims.ocrr.configuration.vo.SecurityLevelRefVo voSecurityLevel, SecurityLevelConfigVoCollection voCollSecurityLevel) throws ims.domain.exceptions.ForeignKeyViolationException, StaleObjectException
{
    if (voSecurityLevel == null)
        throw new CodingRuntimeException("voSecurityLevel is null in method deleteSecurityLevel");

    getDomainFactory().delete(getDomainFactory().getDomainObject(voSecurityLevel));

    //only reorder collection if records exist
    if(voCollSecurityLevel == null || voCollSecurityLevel.size() == 0)
        return;

    List lstSecurityLevel = SecurityLevelConfigVoAssembler.extractSecurityLevelList(getDomainFactory(), voCollSecurityLevel);
    if(lstSecurityLevel != null)
    {
        Iterator it = lstSecurityLevel.iterator();
        while(it.hasNext())
        {
            SecurityLevel doSecurityLevel =  (SecurityLevel)it.next();
            getDomainFactory().save(doSecurityLevel);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void open()
{
    form.grdSecurity().getRows().clear();

    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = domain.listSecurityLevel();
    if (voCollSecurityLevelConfig == null)
        return;

    for (SecurityLevelConfigVo voSecurityLevelConfig : voCollSecurityLevelConfig)
    {
        grdSecurityRow row = form.grdSecurity().getRows().newRow();
        row.setColSecurityLevelDesc(voSecurityLevelConfig.getSecurityLevelDescription());
        row.setValue(voSecurityLevelConfig);
    }

    updateControlState();
}
项目:openMAXIMS    文件:SecurityLevelConfigImpl.java   
/**
* deleteSecurityLevel - delete record and then reorder the collection that remains
*/
public void deleteSecurityLevel(ims.ocrr.configuration.vo.SecurityLevelRefVo voSecurityLevel, SecurityLevelConfigVoCollection voCollSecurityLevel) throws ims.domain.exceptions.ForeignKeyViolationException, StaleObjectException
{
    if (voSecurityLevel == null)
        throw new CodingRuntimeException("voSecurityLevel is null in method deleteSecurityLevel");

    getDomainFactory().delete(getDomainFactory().getDomainObject(voSecurityLevel));

    //only reorder collection if records exist
    if(voCollSecurityLevel == null || voCollSecurityLevel.size() == 0)
        return;

    List lstSecurityLevel = SecurityLevelConfigVoAssembler.extractSecurityLevelList(getDomainFactory(), voCollSecurityLevel);
    if(lstSecurityLevel != null)
    {
        Iterator it = lstSecurityLevel.iterator();
        while(it.hasNext())
        {
            SecurityLevel doSecurityLevel =  (SecurityLevel)it.next();
            getDomainFactory().save(doSecurityLevel);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void open()
{
    form.grdSecurity().getRows().clear();

    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = domain.listSecurityLevel();
    if (voCollSecurityLevelConfig == null)
        return;

    for (SecurityLevelConfigVo voSecurityLevelConfig : voCollSecurityLevelConfig)
    {
        grdSecurityRow row = form.grdSecurity().getRows().newRow();
        row.setColSecurityLevelDesc(voSecurityLevelConfig.getSecurityLevelDescription());
        row.setValue(voSecurityLevelConfig);
    }

    updateControlState();
}
项目:openmaxims-linux    文件:SecurityLevelConfigImpl.java   
/**
* deleteSecurityLevel - delete record and then reorder the collection that remains
*/
public void deleteSecurityLevel(ims.ocrr.configuration.vo.SecurityLevelRefVo voSecurityLevel, SecurityLevelConfigVoCollection voCollSecurityLevel) throws ims.domain.exceptions.ForeignKeyViolationException, StaleObjectException
{
    if (voSecurityLevel == null)
        throw new CodingRuntimeException("voSecurityLevel is null in method deleteSecurityLevel");

    getDomainFactory().delete(getDomainFactory().getDomainObject(voSecurityLevel));

    //only reorder collection if records exist
    if(voCollSecurityLevel == null || voCollSecurityLevel.size() == 0)
        return;

    List lstSecurityLevel = SecurityLevelConfigVoAssembler.extractSecurityLevelList(getDomainFactory(), voCollSecurityLevel);
    if(lstSecurityLevel != null)
    {
        Iterator it = lstSecurityLevel.iterator();
        while(it.hasNext())
        {
            SecurityLevel doSecurityLevel =  (SecurityLevel)it.next();
            getDomainFactory().save(doSecurityLevel);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadSecurityLevel()
{
    form.cmbSecurityLevel().clear();

    SecurityLevelConfigVoCollection voColSecurity = domain.listSecurityLevel();
    for(SecurityLevelConfigVo voSecurity : voColSecurity)
        form.cmbSecurityLevel().newRow(voSecurity, voSecurity.getSecurityLevelDescription());
}
项目:AvoinApotti    文件:Logic.java   
private Integer getNextIndexValue()
{
    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = form.grdSecurity().getValues();
    if(voCollSecurityLevelConfig.size() == 0)
        return new Integer(0);

    voCollSecurityLevelConfig.sort();
    return voCollSecurityLevelConfig.get(voCollSecurityLevelConfig.size() - 1).getSecurityLevel() + 1;
}
项目:AvoinApotti    文件:SecurityLevelConfigImpl.java   
/**
* listSecurityLevel - ordered by SecurityLevel
*/
public ims.ocrr.vo.SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openMAXIMS    文件:Logic.java   
private void loadSecurityLevel()
{
    form.cmbSecurityLevel().clear();

    SecurityLevelConfigVoCollection voColSecurity = domain.listSecurityLevel();
    for(SecurityLevelConfigVo voSecurity : voColSecurity)
        form.cmbSecurityLevel().newRow(voSecurity, voSecurity.getSecurityLevelDescription());
}
项目:openMAXIMS    文件:Logic.java   
private Integer getNextIndexValue()
{
    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = form.grdSecurity().getValues();
    if(voCollSecurityLevelConfig.size() == 0)
        return new Integer(0);

    voCollSecurityLevelConfig.sort();
    return voCollSecurityLevelConfig.get(voCollSecurityLevelConfig.size() - 1).getSecurityLevel() + 1;
}
项目:openMAXIMS    文件:SecurityLevelConfigImpl.java   
/**
* listSecurityLevel - ordered by SecurityLevel
*/
public ims.ocrr.vo.SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openMAXIMS    文件:Logic.java   
private void loadSecurityLevel()
{
    form.cmbSecurityLevel().clear();

    SecurityLevelConfigVoCollection voColSecurity = domain.listSecurityLevel();
    for(SecurityLevelConfigVo voSecurity : voColSecurity)
        form.cmbSecurityLevel().newRow(voSecurity, voSecurity.getSecurityLevelDescription());
}
项目:openMAXIMS    文件:Logic.java   
private Integer getNextIndexValue()
{
    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = form.grdSecurity().getValues();
    if(voCollSecurityLevelConfig.size() == 0)
        return new Integer(0);

    voCollSecurityLevelConfig.sort();
    return voCollSecurityLevelConfig.get(voCollSecurityLevelConfig.size() - 1).getSecurityLevel() + 1;
}
项目:openMAXIMS    文件:SecurityLevelConfigImpl.java   
/**
* listSecurityLevel - ordered by SecurityLevel
*/
public ims.ocrr.vo.SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openmaxims-linux    文件:Logic.java   
private void loadSecurityLevel()
{
    form.cmbSecurityLevel().clear();

    SecurityLevelConfigVoCollection voColSecurity = domain.listSecurityLevel();
    for(SecurityLevelConfigVo voSecurity : voColSecurity)
        form.cmbSecurityLevel().newRow(voSecurity, voSecurity.getSecurityLevelDescription());
}
项目:openmaxims-linux    文件:Logic.java   
private Integer getNextIndexValue()
{
    SecurityLevelConfigVoCollection voCollSecurityLevelConfig = form.grdSecurity().getValues();
    if(voCollSecurityLevelConfig.size() == 0)
        return new Integer(0);

    voCollSecurityLevelConfig.sort();
    return voCollSecurityLevelConfig.get(voCollSecurityLevelConfig.size() - 1).getSecurityLevel() + 1;
}
项目:openmaxims-linux    文件:SecurityLevelConfigImpl.java   
/**
* listSecurityLevel - ordered by SecurityLevel
*/
public ims.ocrr.vo.SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:AvoinApotti    文件:TestEditImpl.java   
public SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openMAXIMS    文件:TestEditImpl.java   
public SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openMAXIMS    文件:TestEditImpl.java   
public SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}
项目:openmaxims-linux    文件:TestEditImpl.java   
public SecurityLevelConfigVoCollection listSecurityLevel()
{
    String hql = "from SecurityLevel sec order by sec.securityLevel asc";
    List lstSecs = getDomainFactory().find(hql);
    return SecurityLevelConfigVoAssembler.createSecurityLevelConfigVoCollectionFromSecurityLevel(lstSecs);
}