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


Java HttpMethod.GET属性代码示例

本文整理汇总了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;
  }
}
 
开发者ID:apache,项目名称:olingo-odata2,代码行数:11,代码来源:SalesOrderHeaderProcessor.java

示例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;
}
 
开发者ID:SAP,项目名称:cloud-sfsf-benefits-ext,代码行数:11,代码来源:AdministrationService.java

示例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);
}
 
开发者ID:SAP,项目名称:cloud-sfsf-benefits-ext,代码行数:8,代码来源:UserService.java

示例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$
}
 
开发者ID:SAP,项目名称:cloud-sfsf-benefits-ext,代码行数:9,代码来源:UserService.java

示例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);
}
 
开发者ID:SAP,项目名称:cloud-sfsf-benefits-ext,代码行数:4,代码来源:UserService.java


注:本文中的org.apache.olingo.odata2.api.annotation.edm.EdmFunctionImport.HttpMethod.GET属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。