本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}