本文整理汇总了Java中us.kbase.common.service.JsonServerMethod类的典型用法代码示例。如果您正苦于以下问题:Java JsonServerMethod类的具体用法?Java JsonServerMethod怎么用?Java JsonServerMethod使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JsonServerMethod类属于us.kbase.common.service包,在下文中一共展示了JsonServerMethod类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkJob
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: check_job</p>
* <pre>
* Check if job is finished and get results/error
* </pre>
* @param jobId instance of original type "job_id" (A job id.)
* @return parameter "job_state" of type {@link us.kbase.kbasejobservice.JobState JobState}
*/
@JsonServerMethod(rpc = "KBaseJobService.check_job")
public JobState checkJob(String jobId, AuthToken authPart, us.kbase.common.service.RpcContext... jsonRpcCallContext) throws Exception {
JobState returnVal = null;
//BEGIN check_job
returnVal = new JobState();
FinishJobParams result = results.get(jobId);
if (result == null) {
returnVal.setFinished(0L);
} else {
returnVal.setFinished(1L);
returnVal.setResult(result.getResult());
returnVal.setError(result.getError());
}
//END check_job
return returnVal;
}
示例2: checkJob
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: check_job</p>
* <pre>
* Check if job is finished and get results/error
* </pre>
* @param jobId instance of original type "job_id" (A job id.)
* @return parameter "job_state" of type {@link us.kbase.kbasejobservice.JobState JobState}
*/
@JsonServerMethod(rpc = "KBaseJobService.check_job")
public JobState checkJob(String jobId, AuthToken authPart, us.kbase.common.service.RpcContext... jsonRpcCallContext) throws Exception {
JobState returnVal = null;
//BEGIN check_job
if (lastCheckJobAccessTime != null && debugCheckJobTimes) {
System.out.println("ExecEngineMock.checkJob: time = " + (System.currentTimeMillis() - lastCheckJobAccessTime));
}
lastCheckJobAccessTime = System.currentTimeMillis();
returnVal = new JobState();
FinishJobParams result = jobToResults.get(jobId);
if (result == null) {
returnVal.setFinished(0L);
} else {
returnVal.setFinished(1L);
returnVal.setResult(result.getResult());
returnVal.setError(result.getError());
}
//END check_job
return returnVal;
}
示例3: alterWorkspaceMetadata
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: alter_workspace_metadata</p>
* <pre>
* Change the metadata associated with a workspace.
* </pre>
* @param params instance of type {@link us.kbase.workspace.AlterWorkspaceMetadataParams AlterWorkspaceMetadataParams}
*/
@JsonServerMethod(rpc = "Workspace.alter_workspace_metadata", async=true)
public void alterWorkspaceMetadata(AlterWorkspaceMetadataParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
//BEGIN alter_workspace_metadata
checkAddlArgs(params.getAdditionalProperties(), params.getClass());
final WorkspaceUserMetadata meta = params.getNew() == null || params.getNew().isEmpty() ?
null : new WorkspaceUserMetadata(params.getNew());
final List<String> remove = params.getRemove() == null || params.getRemove().isEmpty() ?
null : params.getRemove();
if (meta == null && remove == null) {
throw new IllegalArgumentException(
"Must provide metadata keys to add or remove");
}
final WorkspaceIdentifier wsi = processWorkspaceIdentifier(params.getWsi());
final WorkspaceUser user = wsmeth.getUser(authPart);
ws.setWorkspaceMetadata(user, wsi, meta, remove);
//END alter_workspace_metadata
}
示例4: getObject
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_object</p>
* <pre>
* Retrieves the specified object from the specified workspace.
* Both the object data and metadata are returned.
* Provided for backwards compatibility.
* @deprecated Workspace.get_objects
* </pre>
* @param params instance of type {@link us.kbase.workspace.GetObjectParams GetObjectParams} (original type "get_object_params")
* @return parameter "output" of type {@link us.kbase.workspace.GetObjectOutput GetObjectOutput} (original type "get_object_output")
*/
@JsonServerMethod(rpc = "Workspace.get_object", authOptional=true, async=true)
public GetObjectOutput getObject(GetObjectParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
GetObjectOutput returnVal = null;
//BEGIN get_object
final ObjectIdentifier oi = processObjectIdentifier(
params.getWorkspace(), null, params.getId(), null,
params.getInstance());
final WorkspaceObjectData ret = ws.getObjects(
wsmeth.getUser(params.getAuth(), authPart),
Arrays.asList(oi)).get(0);
resourcesToDelete.set(Arrays.asList(ret));
returnVal = new GetObjectOutput()
.withData(ret.getSerializedData().getUObject())
.withMetadata(objInfoToMetaTuple(ret.getObjectInfo(), true));
//END get_object
return returnVal;
}
示例5: listWorkspaceObjects
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: list_workspace_objects</p>
* <pre>
* Lists the metadata of all objects in the specified workspace with the
* specified type (or with any type). Provided for backwards compatibility.
* @deprecated Workspace.list_objects
* </pre>
* @param params instance of type {@link us.kbase.workspace.ListWorkspaceObjectsParams ListWorkspaceObjectsParams} (original type "list_workspace_objects_params")
* @return parameter "objects" of list of original type "object_metadata" (Meta data associated with an object stored in a workspace. Provided for backwards compatibility. obj_name id - name of the object. type_string type - type of the object. timestamp moddate - date when the object was saved obj_ver instance - the version of the object string command - Deprecated. Always returns the empty string. username lastmodifier - name of the user who last saved the object, including copying the object username owner - Deprecated. Same as lastmodifier. ws_name workspace - name of the workspace in which the object is stored string ref - Deprecated. Always returns the empty string. string chsum - the md5 checksum of the object. usermeta metadata - arbitrary user-supplied metadata about the object. obj_id objid - the numerical id of the object. @deprecated object_info) → tuple of size 12: parameter "id" of original type "obj_name" (A string used as a name for an object. Any string consisting of alphanumeric characters and the characters |._- that is not an integer is acceptable.), parameter "type" of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "instance" of Long, parameter "command" of String, parameter "lastmodifier" of original type "username" (Login name of a KBase user account.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "ref" of String, parameter "chsum" of String, parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String, parameter "objid" of original type "obj_id" (The unique, permanent numerical ID of an object.)
*/
@JsonServerMethod(rpc = "Workspace.list_workspace_objects", authOptional=true, async=true)
public List<Tuple12<String, String, String, Long, String, String, String, String, String, String, Map<String,String>, Long>> listWorkspaceObjects(ListWorkspaceObjectsParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
List<Tuple12<String, String, String, Long, String, String, String, String, String, String, Map<String,String>, Long>> returnVal = null;
//BEGIN list_workspace_objects
final WorkspaceIdentifier wsi = processWorkspaceIdentifier(
params.getWorkspace(), null);
final TypeDefId type = params.getType() == null ? null :
TypeDefId.fromTypeString(params.getType());
final WorkspaceUser user = wsmeth.getUser(params.getAuth(), authPart);
final ListObjectsParameters lop;
if (type == null) {
lop = new ListObjectsParameters(user, Arrays.asList(wsi));
} else {
lop = new ListObjectsParameters(user, Arrays.asList(wsi), type);
}
lop.withShowDeleted(longToBoolean(params.getShowDeletedObject()))
.withIncludeMetaData(true);
returnVal = objInfoToMetaTuple(ws.listObjects(lop), false);
//END list_workspace_objects
return returnVal;
}
示例6: getNamesByPrefix
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_names_by_prefix</p>
* <pre>
* Get object names matching a prefix. At most 1000 names are returned.
* No particular ordering is guaranteed, nor is which names will be
* returned if more than 1000 are found.
* This function is intended for use as an autocomplete helper function.
* </pre>
* @param params instance of type {@link us.kbase.workspace.GetNamesByPrefixParams GetNamesByPrefixParams}
* @return parameter "res" of type {@link us.kbase.workspace.GetNamesByPrefixResults GetNamesByPrefixResults}
*/
@JsonServerMethod(rpc = "Workspace.get_names_by_prefix", authOptional=true, async=true)
public GetNamesByPrefixResults getNamesByPrefix(GetNamesByPrefixParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
GetNamesByPrefixResults returnVal = null;
//BEGIN get_names_by_prefix
checkAddlArgs(params.getAdditionalProperties(), params.getClass());
final List<WorkspaceIdentifier> wsil =
new LinkedList<WorkspaceIdentifier>();
for (final WorkspaceIdentity wsi: params.getWorkspaces()) {
wsil.add(processWorkspaceIdentifier(wsi));
}
returnVal = new GetNamesByPrefixResults().withNames(
ws.getNamesByPrefix(
wsmeth.getUser(authPart),
wsil,
params.getPrefix(),
longToBoolean(params.getIncludeHidden()),
1000
)
);
//END get_names_by_prefix
return returnVal;
}
示例7: listModuleVersions
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: list_module_versions</p>
* <pre>
* List typespec module versions.
* </pre>
* @param params instance of type {@link us.kbase.workspace.ListModuleVersionsParams ListModuleVersionsParams}
* @return parameter "vers" of type {@link us.kbase.workspace.ModuleVersions ModuleVersions}
*/
@JsonServerMethod(rpc = "Workspace.list_module_versions", authOptional=true, async=true)
public ModuleVersions listModuleVersions(ListModuleVersionsParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
ModuleVersions returnVal = null;
//BEGIN list_module_versions
checkAddlArgs(params.getAdditionalProperties(), params.getClass());
if (!(params.getMod() == null ^ params.getType() == null)) {
throw new IllegalArgumentException(
"Must provide either a module name or a type");
}
final List<Long> vers;
final String module;
if (params.getMod() != null) {
vers = types.getModuleVersions(
params.getMod(), wsmeth.getUser(authPart));
module = params.getMod();
} else {
final TypeDefId type = TypeDefId.fromTypeString(params.getType());
vers = types.getModuleVersions(type, wsmeth.getUser(authPart));
module = type.getType().getModule();
}
returnVal = new ModuleVersions().withMod(module).withVers(vers);
//END list_module_versions
return returnVal;
}
示例8: getTypeInfo
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_type_info</p>
* <pre>
* </pre>
* @param type instance of original type "type_string" (A type string. Specifies the type and its version in a single string in the format [module].[typename]-[major].[minor]: module - a string. The module name of the typespec containing the type. typename - a string. The name of the type as assigned by the typedef statement. major - an integer. The major version of the type. A change in the major version implies the type has changed in a non-backwards compatible way. minor - an integer. The minor version of the type. A change in the minor version implies that the type has changed in a way that is backwards compatible with previous type definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyType-3.1)
* @return parameter "info" of type {@link us.kbase.workspace.TypeInfo TypeInfo}
*/
@JsonServerMethod(rpc = "Workspace.get_type_info", authOptional=true, async=true)
public TypeInfo getTypeInfo(String type, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
TypeInfo returnVal = null;
//BEGIN get_type_info
TypeDetailedInfo tdi = types.getTypeInfo(
type, true, wsmeth.getUser(authPart));
returnVal = new TypeInfo().withTypeDef(tdi.getTypeDefId())
.withDescription(tdi.getDescription())
.withSpecDef(tdi.getSpecDef())
.withJsonSchema(tdi.getJsonSchema())
.withParsingStructure(tdi.getParsingStructure())
.withModuleVers(tdi.getModuleVersions())
.withReleasedModuleVers(tdi.getReleasedModuleVersions())
.withTypeVers(tdi.getTypeVersions())
.withReleasedTypeVers(tdi.getReleasedTypeVersions())
.withUsingFuncDefs(tdi.getUsingFuncDefIds())
.withUsingTypeDefs(tdi.getUsingTypeDefIds())
.withUsedTypeDefs(tdi.getUsedTypeDefIds());
//END get_type_info
return returnVal;
}
示例9: getFuncInfo
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_func_info</p>
* <pre>
* </pre>
* @param func instance of original type "func_string" (A function string for referencing a funcdef. Specifies the function and its version in a single string in the format [modulename].[funcname]-[major].[minor]: modulename - a string. The name of the module containing the function. funcname - a string. The name of the function as assigned by the funcdef statement. major - an integer. The major version of the function. A change in the major version implies the function has changed in a non-backwards compatible way. minor - an integer. The minor version of the function. A change in the minor version implies that the function has changed in a way that is backwards compatible with previous function definitions. In many cases, the major and minor versions are optional, and if not provided the most recent version will be used. Example: MyModule.MyFunc-3.1)
* @return parameter "info" of type {@link us.kbase.workspace.FuncInfo FuncInfo}
*/
@JsonServerMethod(rpc = "Workspace.get_func_info", authOptional=true, async=true)
public FuncInfo getFuncInfo(String func, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
FuncInfo returnVal = null;
//BEGIN get_func_info
FuncDetailedInfo fdi = types.getFuncInfo(
func, true, wsmeth.getUser(authPart));
returnVal = new FuncInfo().withFuncDef(fdi.getFuncDefId())
.withDescription(fdi.getDescription())
.withSpecDef(fdi.getSpecDef())
.withParsingStructure(fdi.getParsingStructure())
.withModuleVers(fdi.getModuleVersions())
.withReleasedModuleVers(fdi.getReleasedModuleVersions())
.withFuncVers(fdi.getFuncVersions())
.withReleasedFuncVers(fdi.getReleasedFuncVersions())
.withUsedTypeDefs(fdi.getUsedTypeDefIds());
//END get_func_info
return returnVal;
}
示例10: getJobParams
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_job_params</p>
* <pre>
* Get job params necessary for job execution
* </pre>
* @param jobId instance of original type "job_id" (A job id.)
* @return parameter "params" of type {@link us.kbase.kbasejobservice.RunJobParams RunJobParams}
*/
@JsonServerMethod(rpc = "KBaseJobService.get_job_params")
public RunJobParams getJobParams(String jobId, AuthToken authPart, us.kbase.common.service.RpcContext... jsonRpcCallContext) throws Exception {
RunJobParams returnVal = null;
//BEGIN get_job_params
final File jobDir = new File(tempDir, "job_" + jobId);
if (!jobDir.exists())
jobDir.mkdirs();
File jobFile = new File(jobDir, "job.json");
returnVal = UObject.getMapper().readValue(jobFile, RunJobParams.class);
//END get_job_params
return returnVal;
}
示例11: getJobParams
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_job_params</p>
* <pre>
* Get job params necessary for job execution
* </pre>
* @param jobId instance of original type "job_id" (A job id.)
* @return parameter "params" of type {@link us.kbase.kbasejobservice.RunJobParams RunJobParams}
*/
@JsonServerMethod(rpc = "KBaseJobService.get_job_params")
public RunJobParams getJobParams(String jobId, AuthToken authPart, us.kbase.common.service.RpcContext... jsonRpcCallContext) throws Exception {
RunJobParams returnVal = null;
//BEGIN get_job_params
final File jobDir = jobToWorkDir.get(jobId);
File jobFile = new File(jobDir, "job.json");
returnVal = UObject.getMapper().readValue(jobFile, RunJobParams.class);
//END get_job_params
return returnVal;
}
示例12: getProvenance
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
@JsonServerMethod(rpc = "CallbackServer.get_provenance")
public List<ProvenanceAction> getProvenance()
throws IOException, JsonClientException {
/* Would be more efficient if provenance was updated online
although I can't imagine this making a difference compared to
serialization / transport
*/
final List<SubAction> sas = new LinkedList<SubAction>();
for (final ModuleRunVersion mrv: vers.values()) {
sas.add(new SubAction()
.withCodeUrl(mrv.getGitURL().toExternalForm())
.withCommit(mrv.getGitHash())
.withName(mrv.getModuleMethod().getModule())
.withVer(mrv.getVersionAndRelease()));
}
return new LinkedList<ProvenanceAction>(Arrays.asList(
new ProvenanceAction()
.withSubactions(sas)
.withTime(prov.getTime())
.withService(prov.getService())
.withMethod(prov.getMethod())
.withDescription(prov.getDescription())
.withMethodParams(prov.getMethodParams())
.withInputWsObjects(prov.getInputWsObjects())
.withServiceVer(prov.getServiceVer())
));
}
示例13: ver
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: ver</p>
* <pre>
* Returns the version of the workspace service.
* </pre>
* @return parameter "ver" of String
*/
@JsonServerMethod(rpc = "Workspace.ver", async=true)
public String ver(RpcContext jsonRpcContext) throws Exception {
String returnVal = null;
//BEGIN ver
returnVal = VER;
//END ver
return returnVal;
}
示例14: cloneWorkspace
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: clone_workspace</p>
* <pre>
* Clones a workspace.
* </pre>
* @param params instance of type {@link us.kbase.workspace.CloneWorkspaceParams CloneWorkspaceParams}
* @return parameter "info" of original type "workspace_info" (Information about a workspace. ws_id id - the numerical ID of the workspace. ws_name workspace - name of the workspace. username owner - name of the user who owns (e.g. created) this workspace. timestamp moddate - date when the workspace was last modified. int max_objid - the maximum object ID appearing in this workspace. Since cloning a workspace preserves object IDs, this number may be greater than the number of objects in a newly cloned workspace. permission user_permission - permissions for the authenticated user of this workspace. permission globalread - whether this workspace is globally readable. lock_status lockstat - the status of the workspace lock. usermeta metadata - arbitrary user-supplied metadata about the workspace.) → tuple of size 9: parameter "id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.), parameter "workspace" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "max_objid" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "globalread" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "lockstat" of original type "lock_status" (The lock status of a workspace. One of 'unlocked', 'locked', or 'published'.), parameter "metadata" of original type "usermeta" (User provided metadata about an object. Arbitrary key-value pairs provided by the user.) → mapping from String to String
*/
@JsonServerMethod(rpc = "Workspace.clone_workspace", async=true)
public Tuple9<Long, String, String, String, Long, String, String, String, Map<String,String>> cloneWorkspace(CloneWorkspaceParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
Tuple9<Long, String, String, String, Long, String, String, String, Map<String,String>> returnVal = null;
//BEGIN clone_workspace
checkAddlArgs(params.getAdditionalProperties(), params.getClass());
Set<ObjectIDNoWSNoVer> exclude = null;
if (params.getExclude() != null && !params.getExclude().isEmpty()) {
exclude = new HashSet<ObjectIDNoWSNoVer>();
int count = 1;
for (final ObjectIdentity o: params.getExclude()) {
try {
exclude.add(ObjectIDNoWSNoVer.create(
o.getName(), o.getObjid()));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(String.format(
"Error with excluded object #%s: %s",
count, e.getLocalizedMessage()), e);
}
count++;
}
}
final Permission p = getGlobalWSPerm(params.getGlobalread());
final WorkspaceIdentifier wsi =
processWorkspaceIdentifier(params.getWsi());
final WorkspaceInformation meta = ws.cloneWorkspace(
wsmeth.getUser(authPart),
wsi,
params.getWorkspace(),
p.equals(Permission.READ),
params.getDescription(),
new WorkspaceUserMetadata(params.getMeta()),
exclude);
returnVal = wsInfoToTuple(meta);
//END clone_workspace
return returnVal;
}
示例15: getWorkspacemeta
import us.kbase.common.service.JsonServerMethod; //导入依赖的package包/类
/**
* <p>Original spec-file function name: get_workspacemeta</p>
* <pre>
* Retrieves the metadata associated with the specified workspace.
* Provided for backwards compatibility.
* @deprecated Workspace.get_workspace_info
* </pre>
* @param params instance of type {@link us.kbase.workspace.GetWorkspacemetaParams GetWorkspacemetaParams} (original type "get_workspacemeta_params")
* @return parameter "metadata" of original type "workspace_metadata" (Meta data associated with a workspace. Provided for backwards compatibility. To be replaced by workspace_info. ws_name id - name of the workspace username owner - name of the user who owns (who created) this workspace timestamp moddate - date when the workspace was last modified int objects - the approximate number of objects currently stored in the workspace. permission user_permission - permissions for the currently logged in user for the workspace permission global_permission - default permissions for the workspace for all KBase users ws_id num_id - numerical ID of the workspace @deprecated Workspace.workspace_info) → tuple of size 7: parameter "id" of original type "ws_name" (A string used as a name for a workspace. Any string consisting of alphanumeric characters and "_", ".", or "-" that is not an integer is acceptable. The name may optionally be prefixed with the workspace owner's user name and a colon, e.g. kbasetest:my_workspace.), parameter "owner" of original type "username" (Login name of a KBase user account.), parameter "moddate" of original type "timestamp" (A time in the format YYYY-MM-DDThh:mm:ssZ, where Z is either the character Z (representing the UTC timezone) or the difference in time to UTC in the format +/-HHMM, eg: 2012-12-17T23:24:06-0500 (EST time) 2013-04-03T08:56:32+0000 (UTC time) 2013-04-03T08:56:32Z (UTC time)), parameter "objects" of Long, parameter "user_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "global_permission" of original type "permission" (Represents the permissions a user or users have to a workspace: 'a' - administrator. All operations allowed. 'w' - read/write. 'r' - read. 'n' - no permissions.), parameter "num_id" of original type "ws_id" (The unique, permanent numerical ID of a workspace.)
*/
@JsonServerMethod(rpc = "Workspace.get_workspacemeta", authOptional=true, async=true)
public Tuple7<String, String, String, Long, String, String, Long> getWorkspacemeta(GetWorkspacemetaParams params, AuthToken authPart, RpcContext jsonRpcContext) throws Exception {
Tuple7<String, String, String, Long, String, String, Long> returnVal = null;
//BEGIN get_workspacemeta
checkAddlArgs(params.getAdditionalProperties(), GetWorkspacemetaParams.class);
final WorkspaceIdentifier wksp = processWorkspaceIdentifier(
params.getWorkspace(), params.getId());
final WorkspaceInformation meta = ws.getWorkspaceInformation(
wsmeth.getUser(params.getAuth(), authPart), wksp);
returnVal = wsInfoToMetaTuple(meta);
//END get_workspacemeta
return returnVal;
}