本文整理汇总了Java中org.apache.olingo.odata2.api.annotation.edm.EdmFunctionImport.HttpMethod.GET属性的典型用法代码示例。如果您正苦于以下问题:Java HttpMethod.GET属性的具体用法?Java HttpMethod.GET怎么用?Java HttpMethod.GET使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.olingo.odata2.api.annotation.edm.EdmFunctionImport.HttpMethod
的用法示例。
在下文中一共展示了HttpMethod.GET属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkATP
@EdmFunctionImport(name = "CheckATP", returnType = @ReturnType(type = Type.SIMPLE, isCollection = false),
httpMethod = HttpMethod.GET)
public boolean checkATP(
@EdmFunctionImportParameter(name = "SoID", facets = @EdmFacets(nullable = false)) final Long soID,
@EdmFunctionImportParameter(name = "LiId", facets = @EdmFacets(nullable = false)) final Long lineItemID) {
if (soID == 2L) {
return false;
} else {
return true;
}
}
示例2: getUIConfigurationData
@EdmFunctionImport(name = UI_CONFIG, returnType = @ReturnType(type = Type.COMPLEX, isCollection = false), httpMethod = HttpMethod.GET)
public UIConfig getUIConfigurationData() {
final UIConfig config = new UIConfig();
if (UserManager.getIsUserAdmin()) {
config.initAdminConfiguration();
} else {
config.initEmployeeConfiguration();
}
return config;
}
示例3: getHrManagerPhoto
@EdmFunctionImport(name = FunctionImportNames.HR_PHOTO, returnType = @ReturnType(type = Type.SIMPLE, isCollection = false), httpMethod = HttpMethod.GET)
public String getHrManagerPhoto(@EdmFunctionImportParameter(name = PHOTO_TYPE, type = EdmType.INT32) Integer photoType) throws AppODataException {
User hrManager = getLoggedInSfUser().getHrManager();
if (hrManager == null) {
return ""; //$NON-NLS-1$
}
return getUserPhoto(hrManager.getUserId(), photoType);
}
示例4: getCampaignUserPoints
@EdmFunctionImport(name = FunctionImportNames.USER_POINTS, entitySet = FunctionImportEntitySets.USER_POINTS, returnType = @ReturnType(type = Type.ENTITY), httpMethod = HttpMethod.GET)
public UserPoints getCampaignUserPoints(@EdmFunctionImportParameter(name = CAMPAIGN_ID, type = EdmType.INT64) Long campaignId,
@EdmFunctionImportParameter(name = USER_ID, type = EdmType.STRING) String userId) {
User currentUser = getLoggedInSfUser();
if (UserManager.getIsUserAdmin() || currentUser.getUserId().equals(userId)) {
return new UserPointsDAO().getUserPoints(userId, campaignId);
}
throw new IllegalArgumentException("Missing user points for campaign wit id " + campaignId); //$NON-NLS-1$
}
示例5: getUserPhoto
@EdmFunctionImport(name = FunctionImportNames.USER_PHOTO, returnType = @ReturnType(type = Type.SIMPLE, isCollection = false), httpMethod = HttpMethod.GET)
public String getUserPhoto(@EdmFunctionImportParameter(name = PHOTO_TYPE, type = EdmType.INT32) Integer photoType) throws AppODataException {
return getUserPhoto(getLoggedInSfUser().getUserId(), photoType);
}