<apps_uri>/checkinfos[.<format>]
appsCheckInfos 资源用于查询列表中的应用审核记录。
支持的方法:
支持的表述格式:RJSON、JSON、HTML、XML。
对如下 URI 执行 HTTP 请求,以 rjson 输出格式为例加以说明,其中,supermapiportal 是服务器名。
http://supermapiportal:8190/iportal/web/apps/checkinfos.rjson
获取当前应用列表中的应用审核记录。
如果参数未设置,则返回用户有权限查看的第一页中的应用审核记录,设置参数后,会返回用户指定的应用审核记录,请求参数必须包含在 URI 中。
名称 | 类型 | 含义 |
appIds | Integer[] | 指定要查询的应用 id。 |
checkStatus | CheckStatus | 根据应用审核过滤。 |
orderBy | AppOrderBy | 根据排序类型过滤。 |
orderType | OrderType | 根据升序还是降序过滤。 |
keywords | String[] | 根据关键词查询。 |
currentPage | int | 根据分页页码过滤。 |
pageSize | int | 根据分页大小过滤。 |
对 appsCheckInfos 资源执行 GET 请求,返回当前用户有权限查看的应用审核记录。由以下字段组成:
字段 | 类型 | 说明 |
content | List<CheckInfoContent> | 应用的审核记录。 |
currentPage | int | 当前第几页。 |
pageSize | int | 每页大小。 |
searchParameter | SearchParameter | 当前页搜索参数。 |
total | int | 总记录数。 |
totalPage | int | 总页数。 |
对 appsCheckInfos 资源:http://localhost:8190/iportal/web/apps/checkinfos.rjson 执行 GET 请求,返回 rjson 格式的资源表述如下:
{
"total": 2,
"totalPage": 1,
"pageSize": 9,
"searchParameter": {
"orderType": "ASC",
"serviceIds": null,
"appIds": null,
"keywords": null,
"mapIds": null,
"orderBy": null,
"pageSize": 9,
"departmentIds": null,
"currentPage": 1,
"checkStatuses": null,
"objectType": "APP"
},
"currentPage": 1,
"content": [
{
"checkUserNick": "admin",
"checkUser": "admin",
"checkStatus": "SUCCESSFUL",
"checkTime": 1608692817057,
"createTime": 1608692202987,
"departmentId": null,
"verifyReason": "",
"id": 1,
"objectInfo": {
"thumbnail": "",
"address": "",
"contactInfo": {
"contactOrganization": "xx单位",
"contactUser": "wm",
"email": ""
},
"appName": "XX市地理资源管理平台",
"authorizeSetting": [
{
"permissionType": "DELETE",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "iPortal",
"entityId": null
},
{
"permissionType": "READ",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "GUEST",
"entityId": null
}
],
"description": "",
"updateTime": 1608692202693,
"verifyReason": null,
"userName": "iPortal",
"type": "WEBAPP",
"tags": [
"用户应用"
],
"checkUser": null,
"checkUserNick": null,
"checkStatus": "UNCHECKED",
"checkTime": null,
"createTime": 1608692202693,
"nickname": null,
"detailImages": null,
"id": 997303315
}
},
{
"checkUserNick": "admin",
"checkUser": "admin",
"checkStatus": "FAILED",
"checkTime": 1608692824699,
"createTime": 1608692347445,
"departmentId": null,
"verifyReason": "",
"id": 2,
"objectInfo": {
"thumbnail": "",
"address": "",
"contactInfo": {
"contactOrganization": "xx单位",
"contactUser": "wm",
"email": ""
},
"appName": "xx资源管理平台",
"authorizeSetting": [
{
"permissionType": "DELETE",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "iPortal",
"entityId": null
},
{
"permissionType": "SEARCH",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "GUEST",
"entityId": null
}
],
"description": "地理资源集成、管理与共享",
"updateTime": 1608692347180,
"verifyReason": null,
"userName": "iPortal",
"type": "WEBAPP",
"tags": [
"用户应用",
"管理平台"
],
"checkUser": null,
"checkUserNick": null,
"checkStatus": "UNCHECKED",
"checkTime": null,
"createTime": 1608692347180,
"nickname": null,
"detailImages": null,
"id": 1166830349
}
}
]
}
如果希望获取指定的应用审核信息,如查询审核不通过的应用,则需要设置 checkStatuese=FAILED,即对 datas 资源:http://localhost:8190/iportal/web/checkinfos.rjson?checkStatuses= ["FAILED"] 执行 GET 请求,返回的 rjson 格式的资源表述如下:
{
"total": 1,
"totalPage": 1,
"pageSize": 9,
"searchParameter": {
"orderType": "ASC",
"serviceIds": null,
"appIds": null,
"keywords": null,
"mapIds": null,
"orderBy": null,
"pageSize": 9,
"departmentIds": null,
"currentPage": 1,
"checkStatuses": [
"FAILED"
],
"objectType": "APP"
},
"currentPage": 1,
"content": [
{
"checkUserNick": "admin",
"checkUser": "admin",
"checkStatus": "FAILED",
"checkTime": 1608692824699,
"createTime": 1608692347445,
"departmentId": null,
"verifyReason": "",
"id": 2,
"objectInfo": {
"thumbnail": "",
"address": "",
"contactInfo": {
"contactOrganization": "xx单位",
"contactUser": "wm",
"email": ""
},
"appName": "xx资源管理平台",
"authorizeSetting": [
{
"permissionType": "DELETE",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "iPortal",
"entityId": null
},
{
"permissionType": "SEARCH",
"aliasName": null,
"entityRoles": [],
"entityType": "USER",
"entityName": "GUEST",
"entityId": null
}
],
"description": "地理资源集成、管理与共享",
"updateTime": 1608692347180,
"verifyReason": null,
"userName": "iPortal",
"type": "WEBAPP",
"tags": [
"用户应用",
"管理平台"
],
"checkUser": null,
"checkUserNick": null,
"checkStatus": "UNCHECKED",
"checkTime": null,
"createTime": 1608692347180,
"nickname": null,
"detailImages": null,
"id": 1166830349
}
}
]
}
返回跟 GET 请求一样的 HTTP 响应头,但是没有响应实体。可以在不必传输整个响应内容的情况下,获取包含在响应消息头中的元数据信息。元数据信息包括媒体类型,字符编码,压缩编码,实体内容长度等。
HEAD 请求可以用来判断 appsCheckInfos 资源是否存在,或者客户端是否有权限访问 appsCheckInfos 资源。通过对加.<format>的 URI 执行 HEAD 请求,还可以快速判断 appsCheckInfos 资源是否支持<format>格式的表述。