gluu
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.uma.ws.rs.UmaScopeWS クラス
org.xdi.oxauth.uma.ws.rs.UmaScopeWS 連携図
Collaboration graph

公開メンバ関数

Response getScopeDescription (@PathParam("id") String id)
 

非公開変数類

Logger log
 
ErrorResponseFactory errorResponseFactory
 
UmaScopeService umaScopeService
 

詳解

著者
Yuriy Zabrovarnyy
バージョン
0.9, 22/04/2013

関数詳解

◆ getScopeDescription()

Response org.xdi.oxauth.uma.ws.rs.UmaScopeWS.getScopeDescription ( @PathParam("id") String  id)
inline
48  {
49  log.trace("UMA - get scope description: id: {}", id);
50  try {
51  if (StringUtils.isNotBlank(id)) {
52  final UmaScopeDescription scope = umaScopeService.getScope(id);
53  if (scope != null) {
55  jsonScope.setIconUri(scope.getIconUrl());
56  jsonScope.setName(scope.getDisplayName());
57  jsonScope.setDescription(scope.getDescription());
58  return Response.status(Response.Status.OK).entity(ServerUtil.asJson(jsonScope)).build();
59  }
60  }
61  } catch (Exception e) {
62  log.error(e.getMessage(), e);
63  throw new WebApplicationException(Response.status(Response.Status.INTERNAL_SERVER_ERROR)
64  .entity(errorResponseFactory.getUmaJsonErrorResponse(UmaErrorResponseType.SERVER_ERROR)).build());
65  }
66  throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
67  .entity(errorResponseFactory.getUmaJsonErrorResponse(UmaErrorResponseType.NOT_FOUND)).build());
68  }
UmaScopeService umaScopeService
Definition: UmaScopeWS.java:43
UmaScopeDescription getScope(String scopeId)
Definition: UmaScopeService.java:68
Definition: ClaimTokenFormatType.java:1
ErrorResponseFactory errorResponseFactory
Definition: UmaScopeWS.java:40
String getUmaJsonErrorResponse(IErrorType type)
Definition: ErrorResponseFactory.java:181
Logger log
Definition: UmaScopeWS.java:37
Definition: UmaScopeDescription.java:32
void setIconUri(String iconUri)
Definition: UmaScopeDescription.java:72

メンバ詳解

◆ errorResponseFactory

ErrorResponseFactory org.xdi.oxauth.uma.ws.rs.UmaScopeWS.errorResponseFactory
private

◆ log

Logger org.xdi.oxauth.uma.ws.rs.UmaScopeWS.log
private

◆ umaScopeService

UmaScopeService org.xdi.oxauth.uma.ws.rs.UmaScopeWS.umaScopeService
private

このクラス詳解は次のファイルから抽出されました: