当前位置: 首页>>代码示例>>Java>>正文


Java Utils.asList方法代码示例

本文整理汇总了Java中gov.nih.nci.cagrid.common.Utils.asList方法的典型用法代码示例。如果您正苦于以下问题:Java Utils.asList方法的具体用法?Java Utils.asList怎么用?Java Utils.asList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gov.nih.nci.cagrid.common.Utils的用法示例。


在下文中一共展示了Utils.asList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findUsers

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * This methods returns the list of users registered with the Dorian
 * Identity Provider meeting the specified search criteria.
 * 
 * @param filter
 *            The search criteria specifying the users to find.
 * @return The list of users found meeting the search criteria.
 * @throws DorianFault
 * @throws DorianInternalFault
 * @throws PermissionDeniedFault
 */
public List<LocalUser> findUsers(LocalUserFilter filter) throws DorianFault, DorianInternalFault,
    PermissionDeniedFault {
    try {
        List<LocalUser> list = Utils.asList(getClient().findLocalUsers(filter));
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:31,代码来源:LocalAdministrationClient.java

示例2: getOwnedHostCertificates

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * This method returns a list for all the host certificates owned by the
 * user.
 * 
 * @return The list of host certificates owned by the user.
 * @throws DorianFault
 * @throws DorianInternalFault
 * @throws PermissionDeniedFault
 */
public List<HostCertificateRecord> getOwnedHostCertificates() throws DorianFault, DorianInternalFault,
    PermissionDeniedFault {
    try {
        List<HostCertificateRecord> list = Utils.asList(getClient().getOwnedHostCertificates());
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }

}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:30,代码来源:GridUserClient.java

示例3: getUserPolicies

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * This method returns the list of IdP user policies supported by Dorian.
 * 
 * @return The list of IdP user policies supported by Dorian.
 * @throws DorianFault
 * @throws PermissionDeniedFault
 * @throws DorianInternalFault
 */
public List<GridUserPolicy> getUserPolicies() throws DorianFault, PermissionDeniedFault, DorianInternalFault {
    try {
        List<GridUserPolicy> list = Utils.asList(getClient().getGridUserPolicies());
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:27,代码来源:GridAdministrationClient.java

示例4: findUsers

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * This method returns a list of Grid users with accounts on Dorian that
 * meet a specified search criteria.
 * 
 * @param filter
 *            The search criteria
 * @return The list of users that meet the search criteria.
 * @throws DorianFault
 * @throws PermissionDeniedFault
 * @throws DorianInternalFault
 */
public List<GridUser> findUsers(GridUserFilter filter) throws DorianFault, PermissionDeniedFault,
    DorianInternalFault {

    try {
        List<GridUser> list = Utils.asList(getClient().findGridUsers(filter));
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:32,代码来源:GridAdministrationClient.java

示例5: getAdmins

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * This method obtains a list of all the users with privileges to
 * administrate Grid accounts.
 * 
 * @return A list containing the grid identities of users whom have the
 *         privilege to administrate Grid accounts.
 * @throws DorianFault
 * @throws DorianInternalFault
 * @throws PermissionDeniedFault
 */

public List<String> getAdmins() throws DorianFault, DorianInternalFault, PermissionDeniedFault {
    try {
        List<String> list = Utils.asList(getClient().getAdmins());
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:30,代码来源:GridAdministrationClient.java

示例6: findHostCertificates

import gov.nih.nci.cagrid.common.Utils; //导入方法依赖的package包/类
/**
 * Returns the list of host certificates meeting the specified search
 * criteria.
 * 
 * @param filter
 *            The search criteria.
 * @return The list of host certificates meeting the specified search
 *         criteria.
 * @throws DorianFault
 * @throws DorianInternalFault
 * @throws PermissionDeniedFault
 */
public List<HostCertificateRecord> findHostCertificates(HostCertificateFilter filter) throws DorianFault,
    DorianInternalFault, PermissionDeniedFault {
    try {
        List<HostCertificateRecord> list = Utils.asList(getClient().findHostCertificates(filter));
        return list;
    } catch (DorianInternalFault gie) {
        throw gie;
    } catch (PermissionDeniedFault f) {
        throw f;
    } catch (Exception e) {
        FaultUtil.printFault(e);
        DorianFault fault = new DorianFault();
        fault.setFaultString(Utils.getExceptionMessage(e));
        FaultHelper helper = new FaultHelper(fault);
        helper.addFaultCause(e);
        fault = (DorianFault) helper.getFault();
        throw fault;
    }

}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:33,代码来源:GridAdministrationClient.java


注:本文中的gov.nih.nci.cagrid.common.Utils.asList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。