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

项目:AvoinApotti    文件:Logic.java   
private void populateGrid(ArrayList<ConfigFlagAndCategory> flagsandcategory) 
{
    if (flagsandcategory == null || flagsandcategory.size() == 0)
    {   
        ConfigFlagListVoCollection savedFlags = domain.listSavedConfigFlags();
        if (savedFlags == null)
            return ;

        flagsandcategory = new ArrayList<ConfigFlagAndCategory>();

        for (int x = 0; x < savedFlags.size(); x++)
        {
            ConfigFlagListVo savedFlag = savedFlags.get(x);
            if (savedFlag == null)
                continue;

            ConfigFlagAndCategory configFlag = getConfigFlagFromConfig(savedFlag);
            if (configFlag != null && configFlag.getFlag() != null)
            {   
                if ((savedFlag.getValue() == null && getDefaultValue(configFlag) != null) || (savedFlag.getValue() != null && Boolean.TRUE.equals(!savedFlag.getValue().equals(getDefaultValue(configFlag)))))
                {

                    flagsandcategory.add(configFlag);
                }
            }
        }
    }
    if (form.getLocalContext().getCategorySortOrderIsNotNull() && flagsandcategory != null)
    {   
        Collections.sort(flagsandcategory, new FlagCatComparator(form.getLocalContext().getCategorySortOrder()));
    }
    form.dyngrdFlags().getRows().clear();
    for (int i=0; i< flagsandcategory.size(); i++)
    {
        addConfigFlagRow(flagsandcategory.get(i));
    }


}
项目:AvoinApotti    文件:Logic.java   
private String getToolTip (ConfigFlagListVo flag, String defaultValue)
{
    StringBuffer sb = new StringBuffer();
    if (flag != null)
    {   
        String grp = getConfigFlagFromConfig(flag).getCategory() != null ? getConfigFlagFromConfig(flag).getCategory().getName() : "";
        sb.append("<b>Group: </b>" + grp);
        if (flag.getNameIsNotNull())
        {   
            sb.append("<br><b>Name: </b>" + flag.getName());
            String defaultVal = defaultValue != null ? defaultValue : "No Default";
            sb.append("<br><b>Default Value: </b>" + defaultVal);
        }
        sb.append("<br><b>Current Value: </b>" + flag.getValue());

        if (flag.getIsSystemIsNotNull())
        {   
            String sys = flag.getIsSystem() ? flag.getIsSystem().toString() : "false";  
            sb.append("<br><b>System Flag: </b>" + sys);
        }
        if (flag.getSystemInformationIsNotNull())
        {   
            sb.append("<br><b>Creation User: </b>" + flag.getSystemInformation().getCreationUser().toString());
            sb.append("<br><b>Creation Date/Time: </b>" + flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD));
            String updUser = flag.getSystemInformation().getLastupdateUser() != null ? flag.getSystemInformation().getLastupdateUser().toString() : flag.getSystemInformation().getCreationUser().toString();
            sb.append("<br><b>Last Updating User: </b>" + updUser);
            String updDate = flag.getSystemInformation().getLastupdateDateTime() != null ? flag.getSystemInformation().getLastupdateDateTime().toString(DateTimeFormat.STANDARD) : flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD);
            sb.append("<br><b>Last Updated Date/Time: </b>" + updDate);
        }
    }
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ArrayList<ConfigFlagAndCategory> flagsandcategory) 
{
    if (flagsandcategory == null || flagsandcategory.size() == 0)
    {   
        ConfigFlagListVoCollection savedFlags = domain.listSavedConfigFlags();
        if (savedFlags == null)
            return ;

        flagsandcategory = new ArrayList<ConfigFlagAndCategory>();

        for (int x = 0; x < savedFlags.size(); x++)
        {
            ConfigFlagListVo savedFlag = savedFlags.get(x);
            if (savedFlag == null)
                continue;

            ConfigFlagAndCategory configFlag = getConfigFlagFromConfig(savedFlag);
            if (configFlag != null && configFlag.getFlag() != null)
            {   
                if ((savedFlag.getValue() == null && getDefaultValue(configFlag) != null) || (savedFlag.getValue() != null && Boolean.TRUE.equals(!savedFlag.getValue().equals(getDefaultValue(configFlag)))))
                {

                    flagsandcategory.add(configFlag);
                }
            }
        }
    }
    if (form.getLocalContext().getCategorySortOrderIsNotNull() && flagsandcategory != null)
    {   
        Collections.sort(flagsandcategory, new FlagCatComparator(form.getLocalContext().getCategorySortOrder()));
    }
    form.dyngrdFlags().getRows().clear();
    for (int i=0; i< flagsandcategory.size(); i++)
    {
        addConfigFlagRow(flagsandcategory.get(i));
    }


}
项目:openMAXIMS    文件:Logic.java   
private String getToolTip (ConfigFlagListVo flag, String defaultValue)
{
    StringBuffer sb = new StringBuffer();
    if (flag != null)
    {   
        String grp = getConfigFlagFromConfig(flag).getCategory() != null ? getConfigFlagFromConfig(flag).getCategory().getName() : "";
        sb.append("<b>Group: </b>" + grp);
        if (flag.getNameIsNotNull())
        {   
            sb.append("<br><b>Name: </b>" + flag.getName());
            String defaultVal = defaultValue != null ? defaultValue : "No Default";
            sb.append("<br><b>Default Value: </b>" + defaultVal);
        }
        sb.append("<br><b>Current Value: </b>" + flag.getValue());

        if (flag.getIsSystemIsNotNull())
        {   
            String sys = flag.getIsSystem() ? flag.getIsSystem().toString() : "false";  
            sb.append("<br><b>System Flag: </b>" + sys);
        }
        if (flag.getSystemInformationIsNotNull())
        {   
            sb.append("<br><b>Creation User: </b>" + flag.getSystemInformation().getCreationUser().toString());
            sb.append("<br><b>Creation Date/Time: </b>" + flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD));
            String updUser = flag.getSystemInformation().getLastupdateUser() != null ? flag.getSystemInformation().getLastupdateUser().toString() : flag.getSystemInformation().getCreationUser().toString();
            sb.append("<br><b>Last Updating User: </b>" + updUser);
            String updDate = flag.getSystemInformation().getLastupdateDateTime() != null ? flag.getSystemInformation().getLastupdateDateTime().toString(DateTimeFormat.STANDARD) : flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD);
            sb.append("<br><b>Last Updated Date/Time: </b>" + updDate);
        }
    }
    return sb.toString();
}
项目:openMAXIMS    文件:Logic.java   
private void populateGrid(ArrayList<ConfigFlagAndCategory> flagsandcategory) 
{
    if (flagsandcategory == null || flagsandcategory.size() == 0)
    {   
        ConfigFlagListVoCollection savedFlags = domain.listSavedConfigFlags();
        if (savedFlags == null)
            return ;

        flagsandcategory = new ArrayList<ConfigFlagAndCategory>();

        for (int x = 0; x < savedFlags.size(); x++)
        {
            ConfigFlagListVo savedFlag = savedFlags.get(x);
            if (savedFlag == null)
                continue;

            ConfigFlagAndCategory configFlag = getConfigFlagFromConfig(savedFlag);
            if (configFlag != null && configFlag.getFlag() != null)
            {   
                if ((savedFlag.getValue() == null && getDefaultValue(configFlag) != null) || (savedFlag.getValue() != null && Boolean.TRUE.equals(!savedFlag.getValue().equals(getDefaultValue(configFlag)))))
                {

                    flagsandcategory.add(configFlag);
                }
            }
        }
    }
    if (form.getLocalContext().getCategorySortOrderIsNotNull() && flagsandcategory != null)
    {   
        Collections.sort(flagsandcategory, new FlagCatComparator(form.getLocalContext().getCategorySortOrder()));
    }
    form.dyngrdFlags().getRows().clear();
    for (int i=0; i< flagsandcategory.size(); i++)
    {
        addConfigFlagRow(flagsandcategory.get(i));
    }


}
项目:openMAXIMS    文件:Logic.java   
private String getToolTip (ConfigFlagListVo flag, String defaultValue)
{
    StringBuffer sb = new StringBuffer();
    if (flag != null)
    {   
        String grp = getConfigFlagFromConfig(flag).getCategory() != null ? getConfigFlagFromConfig(flag).getCategory().getName() : "";
        sb.append("<b>Group: </b>" + grp);
        if (flag.getNameIsNotNull())
        {   
            sb.append("<br><b>Name: </b>" + flag.getName());
            String defaultVal = defaultValue != null ? defaultValue : "No Default";
            sb.append("<br><b>Default Value: </b>" + defaultVal);
        }
        sb.append("<br><b>Current Value: </b>" + flag.getValue());

        if (flag.getIsSystemIsNotNull())
        {   
            String sys = flag.getIsSystem() ? flag.getIsSystem().toString() : "false";  
            sb.append("<br><b>System Flag: </b>" + sys);
        }
        if (flag.getSystemInformationIsNotNull())
        {   
            sb.append("<br><b>Creation User: </b>" + flag.getSystemInformation().getCreationUser().toString());
            sb.append("<br><b>Creation Date/Time: </b>" + flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD));
            String updUser = flag.getSystemInformation().getLastupdateUser() != null ? flag.getSystemInformation().getLastupdateUser().toString() : flag.getSystemInformation().getCreationUser().toString();
            sb.append("<br><b>Last Updating User: </b>" + updUser);
            String updDate = flag.getSystemInformation().getLastupdateDateTime() != null ? flag.getSystemInformation().getLastupdateDateTime().toString(DateTimeFormat.STANDARD) : flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD);
            sb.append("<br><b>Last Updated Date/Time: </b>" + updDate);
        }
    }
    return sb.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateGrid(ArrayList<ConfigFlagAndCategory> flagsandcategory) 
{
    if (flagsandcategory == null || flagsandcategory.size() == 0)
    {   
        ConfigFlagListVoCollection savedFlags = domain.listSavedConfigFlags();
        if (savedFlags == null)
            return ;

        flagsandcategory = new ArrayList<ConfigFlagAndCategory>();

        for (int x = 0; x < savedFlags.size(); x++)
        {
            ConfigFlagListVo savedFlag = savedFlags.get(x);
            if (savedFlag == null)
                continue;

            ConfigFlagAndCategory configFlag = getConfigFlagFromConfig(savedFlag);
            if (configFlag != null && configFlag.getFlag() != null)
            {   
                if ((savedFlag.getValue() == null && getDefaultValue(configFlag) != null) || (savedFlag.getValue() != null && Boolean.TRUE.equals(!savedFlag.getValue().equals(getDefaultValue(configFlag)))))
                {

                    flagsandcategory.add(configFlag);
                }
            }
        }
    }
    if (form.getLocalContext().getCategorySortOrderIsNotNull() && flagsandcategory != null)
    {   
        Collections.sort(flagsandcategory, new FlagCatComparator(form.getLocalContext().getCategorySortOrder()));
    }
    form.dyngrdFlags().getRows().clear();
    for (int i=0; i< flagsandcategory.size(); i++)
    {
        addConfigFlagRow(flagsandcategory.get(i));
    }


}
项目:openmaxims-linux    文件:Logic.java   
private String getToolTip (ConfigFlagListVo flag, String defaultValue)
{
    StringBuffer sb = new StringBuffer();
    if (flag != null)
    {   
        String grp = getConfigFlagFromConfig(flag).getCategory() != null ? getConfigFlagFromConfig(flag).getCategory().getName() : "";
        sb.append("<b>Group: </b>" + grp);
        if (flag.getNameIsNotNull())
        {   
            sb.append("<br><b>Name: </b>" + flag.getName());
            String defaultVal = defaultValue != null ? defaultValue : "No Default";
            sb.append("<br><b>Default Value: </b>" + defaultVal);
        }
        sb.append("<br><b>Current Value: </b>" + flag.getValue());

        if (flag.getIsSystemIsNotNull())
        {   
            String sys = flag.getIsSystem() ? flag.getIsSystem().toString() : "false";  
            sb.append("<br><b>System Flag: </b>" + sys);
        }
        if (flag.getSystemInformationIsNotNull())
        {   
            sb.append("<br><b>Creation User: </b>" + flag.getSystemInformation().getCreationUser().toString());
            sb.append("<br><b>Creation Date/Time: </b>" + flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD));
            String updUser = flag.getSystemInformation().getLastupdateUser() != null ? flag.getSystemInformation().getLastupdateUser().toString() : flag.getSystemInformation().getCreationUser().toString();
            sb.append("<br><b>Last Updating User: </b>" + updUser);
            String updDate = flag.getSystemInformation().getLastupdateDateTime() != null ? flag.getSystemInformation().getLastupdateDateTime().toString(DateTimeFormat.STANDARD) : flag.getSystemInformation().getCreationDateTime().toString(DateTimeFormat.STANDARD);
            sb.append("<br><b>Last Updated Date/Time: </b>" + updDate);
        }
    }
    return sb.toString();
}
项目:AvoinApotti    文件:Logic.java   
public ConfigFlagAndCategory(FlagCategoryVo cat, AFlag flg, ConfigFlagListVo svdflag)
{
    category = cat;
    flag = flg;
    savedflag = svdflag;
}
项目:AvoinApotti    文件:Logic.java   
public ConfigFlagListVo getSavedFlag()
{
    return this.savedflag;

}
项目:openMAXIMS    文件:Logic.java   
public ConfigFlagAndCategory(FlagCategoryVo cat, AFlag flg, ConfigFlagListVo svdflag)
{
    category = cat;
    flag = flg;
    savedflag = svdflag;
}
项目:openMAXIMS    文件:Logic.java   
public ConfigFlagListVo getSavedFlag()
{
    return this.savedflag;

}
项目:openMAXIMS    文件:Logic.java   
public ConfigFlagAndCategory(FlagCategoryVo cat, AFlag flg, ConfigFlagListVo svdflag)
{
    category = cat;
    flag = flg;
    savedflag = svdflag;
}
项目:openMAXIMS    文件:Logic.java   
public ConfigFlagListVo getSavedFlag()
{
    return this.savedflag;

}
项目:openmaxims-linux    文件:Logic.java   
public ConfigFlagAndCategory(FlagCategoryVo cat, AFlag flg, ConfigFlagListVo svdflag)
{
    category = cat;
    flag = flg;
    savedflag = svdflag;
}
项目:openmaxims-linux    文件:Logic.java   
public ConfigFlagListVo getSavedFlag()
{
    return this.savedflag;

}