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

项目:AvoinApotti    文件:Logic.java   
private void populateAppRights(AppRightVoCollection rights)
{
    form.lyrRights().tabRightsGranted().grdRights().getRows().clear();
    if (rights == null)
        return;
    rights.sort(new AppRightComparator());
    GenForm.lyrRightsLayer.tabRightsGrantedContainer.grdRightsRow row;
    for (int i = 0; i < rights.size(); i++)
    {
        row = form.lyrRights().tabRightsGranted().grdRights().getRows().newRow();
        row.setAppRight(rights.get(i).getName());
        row.setValue(rights.get(i));
        row.setTooltip(rights.get(i).getComment());
        removeItemFromRightsCombo(rights.get(i));
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void initialize()
{   
    clearContext();

    Boolean requiresPds = domain.getRequiresPds(engine.getLoggedInRole().getId());
    form.getLocalContext().setRequiresPDS(requiresPds != null ? requiresPds : false);

    AppRightVoCollection pdsRights = domain.getPDSRights(engine.getLoggedInRole().getId());
    form.getLocalContext().setPDSRightsColl(pdsRights);
    form.getLocalContext().getPDSRightsColl();

    loadNotificationPriorityComboValues();

    initializeDates();
    initializeDynamicGridResults();
    initializeDynamicGridNotifications();
    updateControlStates();
}
项目:openMAXIMS    文件:Logic.java   
private void populateAppRights(AppRightVoCollection rights)
    {
        form.lyrRights().tabRightsGranted().grdRights().getRows().clear();
        if (rights == null)
            return;
        rights.sort(new AppRightComparator());
        GenForm.lyrRightsLayer.tabRightsGrantedContainer.grdRightsRow row;
        for (int i = 0; i < rights.size(); i++)
        {
            row = form.lyrRights().tabRightsGranted().grdRights().getRows().newRow();
            row.setAppRight(rights.get(i).getName());
            row.setValue(rights.get(i));

            //WDEV-20577
//          row.setTooltip(rights.get(i).getComment());
            AppRight right = AppRight.getRight(rights.get(i).getName());
            if (right != null)
                row.setTooltip(right.getComment()); //WDEV-20577

        }   
    }
项目:openMAXIMS    文件:Logic.java   
private boolean isAlreadySelected(AppRightVo voRight) 
{   
    //WDEV-20617
    AppRightVoCollection collSelectedRights;
    if (form.getLocalContext().getIsPdsRight())
        collSelectedRights = form.getGlobalContext().Admin.getSelectedPdsRoleRights();  
    else
        collSelectedRights = form.getGlobalContext().Admin.getSelectedRoleRigths(); 
    //WDEV-20617 ends here

    if (collSelectedRights != null && collSelectedRights.size() > 0)
    {
        for (int i = 0; i < collSelectedRights.size(); i++)
        {
            AppRightVo voSelectedRight = collSelectedRights.get(i);
            if(voSelectedRight.getName().equals(voRight.getName()))
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void removeRightFromSelection(AppRightVo value)
{
    //WDEV-20617
    AppRightVoCollection formSelectedRigrts;
    if (form.getLocalContext().getIsPdsRight())
        formSelectedRigrts = form.getGlobalContext().Admin.getSelectedPdsRoleRights();
    else
        formSelectedRigrts = form.getGlobalContext().Admin.getSelectedRoleRigths();
    //WDEV-20617 ends here

    if (formSelectedRigrts == null || formSelectedRigrts.size() < 1)
        return;

    for(int i=0; i<formSelectedRigrts.size(); i++)
    {
        if(formSelectedRigrts.get(i).getName() != null && value.getName() != null && formSelectedRigrts.get(i).getName().toUpperCase().equals(value.getName().toUpperCase()))
            formSelectedRigrts.remove(i);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateAppRights(AppRightVoCollection rights)
{
    form.lyrRights().tabRightsGranted().grdRights().getRows().clear();
    if (rights == null)
        return;
    rights.sort(new AppRightComparator());
    GenForm.lyrRightsLayer.tabRightsGrantedContainer.grdRightsRow row;
    for (int i = 0; i < rights.size(); i++)
    {
        row = form.lyrRights().tabRightsGranted().grdRights().getRows().newRow();
        row.setAppRight(rights.get(i).getName());
        row.setValue(rights.get(i));
        row.setTooltip(rights.get(i).getComment());
        removeItemFromRightsCombo(rights.get(i));
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAppRights(AppRightVoCollection rights)
{
    form.lyrRights().tabRightsGranted().grdRights().getRows().clear();
    if (rights == null)
        return;
    rights.sort(new AppRightComparator());
    GenForm.lyrRightsLayer.tabRightsGrantedContainer.grdRightsRow row;
    for (int i = 0; i < rights.size(); i++)
    {
        row = form.lyrRights().tabRightsGranted().grdRights().getRows().newRow();
        row.setAppRight(rights.get(i).getName());
        row.setValue(rights.get(i));
        row.setTooltip(rights.get(i).getComment());
        removeItemFromRightsCombo(rights.get(i));
    }   
}
项目:AvoinApotti    文件:Logic.java   
private boolean isAlreadySelected(AppRightVo voRight) {
    AppRoleVo voRole = form.getLocalContext().getRoleSelected();

    AppRightVoCollection collSelectedRights = voRole.getAppRights();        
    for (int i = 0; i < collSelectedRights.size(); i++)
    {
        AppRightVo voSelectedRight = collSelectedRights.get(i);
        if(voSelectedRight.getName().equals(voRight.getName()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private AppRightVoCollection buildAppRightList()
{
    AppRightVoCollection ret = new AppRightVoCollection();
    int size = form.lyrRights().tabRightsGranted().grdRights().getRows().size();
    for (int i = 0; i < size; i++)
    {
        ret.add(form.lyrRights().tabRightsGranted().grdRights().getRows().get(i).getValue());
    }
    return ret;     
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasPDSSynchRight(AppRightVoCollection coll)
{
    if (coll == null)
        return false;

    for (AppRightVo right : coll)
    {
        if (AppRight.PDS_SYNCHRONISE_INTERACTIVE.getName().equals(right.getName()))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:PDSBackOfficeWorklistImpl.java   
public AppRightVoCollection getPDSRights(Integer id) 
{
    if (id != null)
    {   
        AppRole role = (AppRole) getDomainFactory().getDomainObject(AppRole.class,id);
        //WDEV-21387
        return AppRightVoAssembler.createAppRightVoCollectionFromAppRight(role.getPdsRights());
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private AppRightVoCollection buildAppRightList()
{
    AppRightVoCollection ret = new AppRightVoCollection();
    int size = form.lyrRights().tabRightsGranted().grdRights().getRows().size();
    for (int i = 0; i < size; i++)
    {
        ret.add(form.lyrRights().tabRightsGranted().grdRights().getRows().get(i).getValue());
    }
    return ret;     
}
项目:openMAXIMS    文件:Logic.java   
private AppRightVoCollection buildAppPdsRightList()
{
    AppRightVoCollection ret = new AppRightVoCollection();
    int size = form.grdPdsRights().getRows().size();
    for (int i = 0; i < size; i++)
    {
        ret.add(form.grdPdsRights().getRows().get(i).getValue());
    }
    return ret;     
}
项目:openMAXIMS    文件:Logic.java   
private void populateAppPdsRights(AppRightVoCollection rights)
{
    form.grdPdsRights().getRows().clear();
    if (rights == null)
        return;
    rights.sort(new AppRightComparator());
    GenForm.grdPdsRightsRow row;
    for (int i = 0; i < rights.size(); i++)
    {
        row = form.grdPdsRights().getRows().newRow();
        row.setPDSRights(rights.get(i).getName());
        row.setValue(rights.get(i));
        row.setTooltip(rights.get(i).getComment());
    }   
}
项目:openMAXIMS    文件:Logic.java   
private boolean isAlreadySelected(AppRightVo voRight) {
    AppRoleVo voRole = form.getLocalContext().getRoleSelected();

    AppRightVoCollection collSelectedRights = voRole.getAppRights();        
    for (int i = 0; i < collSelectedRights.size(); i++)
    {
        AppRightVo voSelectedRight = collSelectedRights.get(i);
        if(voSelectedRight.getName().equals(voRight.getName()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private AppRightVoCollection buildAppRightList()
{
    AppRightVoCollection ret = new AppRightVoCollection();
    int size = form.lyrRights().tabRightsGranted().grdRights().getRows().size();
    for (int i = 0; i < size; i++)
    {
        ret.add(form.lyrRights().tabRightsGranted().grdRights().getRows().get(i).getValue());
    }
    return ret;     
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isAlreadySelected(AppRightVo voRight) {
    AppRoleVo voRole = form.getLocalContext().getRoleSelected();

    AppRightVoCollection collSelectedRights = voRole.getAppRights();        
    for (int i = 0; i < collSelectedRights.size(); i++)
    {
        AppRightVo voSelectedRight = collSelectedRights.get(i);
        if(voSelectedRight.getName().equals(voRight.getName()))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private AppRightVoCollection buildAppRightList()
{
    AppRightVoCollection ret = new AppRightVoCollection();
    int size = form.lyrRights().tabRightsGranted().grdRights().getRows().size();
    for (int i = 0; i < size; i++)
    {
        ret.add(form.lyrRights().tabRightsGranted().grdRights().getRows().get(i).getValue());
    }
    return ret;     
}