private Context createQueueRegistrationContext()

in src/main/java/com/epam/grid/engine/provider/queue/sge/SgeQueueProvider.java [246:271]


    private Context createQueueRegistrationContext(final QueueVO queueVO) {
        final Context context = new Context();
        context.setVariable(QNAME_FIELD, queueVO.getName());

        final String hostList = isParameterExists(queueVO.getHostList())
                ? String.join(SPACE, queueVO.getHostList())
                : HOST_LIST_DEFAULT;

        final String peList = isParameterExists(queueVO.getParallelEnvironmentNames())
                ? String.join(SPACE, queueVO.getParallelEnvironmentNames())
                : PE_LIST_DEFAULT;

        final String ownerList = isParameterExists(queueVO.getOwnerList())
                ? String.join(SPACE, queueVO.getOwnerList())
                : OWNER_LIST_DEFAULT;

        final String userList = isParameterExists(queueVO.getAllowedUserGroups())
                ? String.join(SPACE, queueVO.getAllowedUserGroups())
                : USER_LIST_DEFAULT;

        context.setVariable(PE_LIST_FIELD, peList);
        context.setVariable(HOST_LIST_FIELD, hostList);
        context.setVariable(OWNER_LIST_FIELD, ownerList);
        context.setVariable(USER_LIST_FIELD, userList);
        return context;
    }