AS AgentScopeAPI 手册 / API Reference

ResourceShareEntity

@Entity @Table( name = "builder_resource_share", uniqueConstraints = @UniqueConstraint( name = "ux_builder_resource_share_grant", columnNames = { "resource_type", "resource_id", "grantee_type", "grantee_id" }), indexes = { @Index( name = "ix_builder_resource_share_resource", columnList = "resource_type, resource_id") }) public class ResourceShareEntity
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:33–168

资源 Share Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getShareId、setShareId、getResourceType、setResourceType。

A single sharing grant on a non-agent managed resource (environment / memory store / vault). Mirrors the agent-sharing model in io.agentscope.builder.web.share.AgentShareGrant but is keyed generically by (resourceType, resourceId) so it can back several resource kinds without a dedicated table per kind.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ResourceShareEntity()
初始化 `ResourceShareEntity` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Long getRowId()
获取 `getRowId`。
Returns the row id.
public void setRowId(Long rowId)
设置 `setRowId`。
Sets the row id.
public String getShareId()
获取 `getShareId`。
Returns the share id.
public void setShareId(String shareId)
设置 `setShareId`。
Sets the share id.
public String getResourceType()
获取资源类型。
Returns the resource type.
public void setResourceType(String resourceType)
设置资源类型。
Sets the resource type.
public String getResourceId()
获取资源标识。
Returns the resource id.
public void setResourceId(String resourceId)
设置资源标识。
Sets the resource id.
public String getOwnerId()
获取所有者标识。
Returns the owner id.
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
public String getGranteeType()
获取 `getGranteeType`。
Returns the grantee type.
public void setGranteeType(String granteeType)
设置 `setGranteeType`。
Sets the grantee type.
public String getGranteeId()
获取 `getGranteeId`。
Returns the grantee id.
public void setGranteeId(String granteeId)
设置 `setGranteeId`。
Sets the grantee id.
public String getTier()
获取 `getTier`。
Returns the tier.
public void setTier(String tier)
设置 `setTier`。
Sets the tier.
public long getCreatedAt()
获取已创建 At。
Returns the created at.
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
public String getCreatedBy()
获取已创建通过。
Returns the created by.
public void setCreatedBy(String createdBy)
设置已创建通过。
Sets the created by.

构造器详情Constructor Detail

ResourceShareEntity

public ResourceShareEntity()

初始化 ResourceShareEntity 实例。

Creates a new instance.

源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:87

方法详情Method Detail

getRowId

public Long getRowId()

获取 getRowId。

Returns the row id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:89–91

setRowId

public void setRowId(Long rowId)

设置 setRowId。

Sets the row id.

参数Parameters
名称Name类型Type说明Description
rowIdLongrow 标识(类型 `Long`)。The row id.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:93–95

getShareId

public String getShareId()

获取 getShareId。

Returns the share id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:97–99

setShareId

public void setShareId(String shareId)

设置 setShareId。

Sets the share id.

参数Parameters
名称Name类型Type说明Description
shareIdStringshare 标识(类型 `String`)。The share id.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:101–103

getResourceType

public String getResourceType()

获取资源类型。

Returns the resource type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:105–107

setResourceType

public void setResourceType(String resourceType)

设置资源类型。

Sets the resource type.

参数Parameters
名称Name类型Type说明Description
resourceTypeString资源类型(类型 `String`)。The resource type.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:109–111

getResourceId

public String getResourceId()

获取资源标识。

Returns the resource id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:113–115

setResourceId

public void setResourceId(String resourceId)

设置资源标识。

Sets the resource id.

参数Parameters
名称Name类型Type说明Description
resourceIdString资源标识(类型 `String`)。The resource id.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:117–119

getOwnerId

public String getOwnerId()

获取所有者标识。

Returns the owner id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:121–123

setOwnerId

public void setOwnerId(String ownerId)

设置所有者标识。

Sets the owner id.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:125–127

getGranteeType

public String getGranteeType()

获取 getGranteeType。

Returns the grantee type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:129–131

setGranteeType

public void setGranteeType(String granteeType)

设置 setGranteeType。

Sets the grantee type.

参数Parameters
名称Name类型Type说明Description
granteeTypeStringgrantee 类型(类型 `String`)。The grantee type.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:133–135

getGranteeId

public String getGranteeId()

获取 getGranteeId。

Returns the grantee id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:137–139

setGranteeId

public void setGranteeId(String granteeId)

设置 setGranteeId。

Sets the grantee id.

参数Parameters
名称Name类型Type说明Description
granteeIdStringgrantee 标识(类型 `String`)。The grantee id.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:141–143

getTier

public String getTier()

获取 getTier。

Returns the tier.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:145–147

setTier

public void setTier(String tier)

设置 setTier。

Sets the tier.

参数Parameters
名称Name类型Type说明Description
tierStringtier(类型 `String`)。The tier.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:149–151

getCreatedAt

public long getCreatedAt()

获取已创建 At。

Returns the created at.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:153–155

setCreatedAt

public void setCreatedAt(long createdAt)

设置已创建 At。

Sets the created at.

参数Parameters
名称Name类型Type说明Description
createdAtlong已创建 At(类型 `long`)。The created at.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:157–159

getCreatedBy

public String getCreatedBy()

获取已创建通过。

Returns the created by.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:161–163

setCreatedBy

public void setCreatedBy(String createdBy)

设置已创建通过。

Sets the created by.

参数Parameters
名称Name类型Type说明Description
createdByString已创建通过(类型 `String`)。The created by.
源码Source io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:165–167
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.