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

项目:AvoinApotti    文件:Logic.java   
private void displayDetails(ClearSpanAuditVo entry) 
{
    clearDetails();

    if(entry == null)
        return;

    form.getLocalContext().setSelectedEntry(entry);

    form.ctnDetails().txtDetailsDateTime().setValue(entry.getTimeGenerated().toString());   
    form.ctnDetails().txtDetailsEventType().setValue(entry.getEventType().toString());
    form.ctnDetails().txtDetailsLevel().setValue(entry.getEvenLevel().toString());
    form.ctnDetails().txtDetailsSource().setValue(entry.getSourceName());               
    form.ctnDetails().txtDetailsMessage().setValue(entry.getMessage());
    form.ctnDetails().txtDetailsData().setValue(entry.getData());

    form.ctnDetails().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private void displayDetails(ClearSpanAuditVo entry) 
{
    clearDetails();

    if(entry == null)
        return;

    form.getLocalContext().setSelectedEntry(entry);

    form.ctnDetails().txtDetailsDateTime().setValue(entry.getTimeGenerated().toString());   
    form.ctnDetails().txtDetailsEventType().setValue(entry.getEventType().toString());
    form.ctnDetails().txtDetailsLevel().setValue(entry.getEvenLevel().toString());
    form.ctnDetails().txtDetailsSource().setValue(entry.getSourceName());               
    form.ctnDetails().txtDetailsMessage().setValue(entry.getMessage());
    form.ctnDetails().txtDetailsData().setValue(entry.getData());

    form.ctnDetails().setCollapsed(false);
}
项目:openMAXIMS    文件:Logic.java   
private void displayDetails(ClearSpanAuditVo entry) 
{
    clearDetails();

    if(entry == null)
        return;

    form.getLocalContext().setSelectedEntry(entry);

    form.ctnDetails().txtDetailsDateTime().setValue(entry.getTimeGenerated().toString());   
    form.ctnDetails().txtDetailsEventType().setValue(entry.getEventType().toString());
    form.ctnDetails().txtDetailsLevel().setValue(entry.getEvenLevel().toString());
    form.ctnDetails().txtDetailsSource().setValue(entry.getSourceName());               
    form.ctnDetails().txtDetailsMessage().setValue(entry.getMessage());
    form.ctnDetails().txtDetailsData().setValue(entry.getData());

    form.ctnDetails().setCollapsed(false);
}
项目:openmaxims-linux    文件:Logic.java   
private void displayDetails(ClearSpanAuditVo entry) 
{
    clearDetails();

    if(entry == null)
        return;

    form.getLocalContext().setSelectedEntry(entry);

    form.ctnDetails().txtDetailsDateTime().setValue(entry.getTimeGenerated().toString());   
    form.ctnDetails().txtDetailsEventType().setValue(entry.getEventType().toString());
    form.ctnDetails().txtDetailsLevel().setValue(entry.getEvenLevel().toString());
    form.ctnDetails().txtDetailsSource().setValue(entry.getSourceName());               
    form.ctnDetails().txtDetailsMessage().setValue(entry.getMessage());
    form.ctnDetails().txtDetailsData().setValue(entry.getData());

    form.ctnDetails().setCollapsed(false);
}
项目:AvoinApotti    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openMAXIMS    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openMAXIMS    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}
项目:openmaxims-linux    文件:Logic.java   
private void populate(ClearSpanAuditVo entry) 
{
    if(entry == null)
        return;

    GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow();
    row.setValue(entry);

    ClearSpanEventLevelCollection levs=(ClearSpanEventLevelCollection) ClearSpanEventLevel.getNegativeInstancesAsIItemCollection();

    try
    {
        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.INFORMATION, levs)))
            row.setcolImage(form.getImages().Admin.LogInformation);

        if(domain.getEventLevelCode(entry.getEvenLevel(), levs).equals(domain.getEventLevelCode(ClearSpanEventLevel.WARNING, levs)))
            row.setcolImage(form.getImages().Admin.LogWarning); 

    } catch (DomainInterfaceException e)
    {
        engine.showMessage("Cannot get the Event Levels");
        return;
    }


    row.setcolDateTime(entry.getTimeGenerated().toString());
    row.setcolLevel(entry.getEvenLevel().getText());
    row.setcolType(entry.getEventType().getText());

    String message = entry.getMessage();
    if(message.length() > 120)
        message = message.substring(0, 120) + "...";                
    row.setcolMessage(message);         

    String data = entry.getData()==null?" ": entry.getData();
    if(data.length() > 120)
        data = data.substring(0, 120) + "...";                      
    row.setcolData(data);

}