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
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.
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:87方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Longio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:89–91setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:93–95getResourceType
public String getResourceType()
获取资源类型。
Returns the resource type.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:105–107setResourceType
public void setResourceType(String resourceType)
设置资源类型。
Sets the resource type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
resourceType | String | 资源类型(类型 `String`)。The resource type. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:109–111getResourceId
public String getResourceId()
获取资源标识。
Returns the resource id.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:113–115setResourceId
public void setResourceId(String resourceId)
设置资源标识。
Sets the resource id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
resourceId | String | 资源标识(类型 `String`)。The resource id. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:117–119getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:121–123setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:125–127getGranteeType
public String getGranteeType()
获取 getGranteeType。
Returns the grantee type.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:129–131setGranteeType
public void setGranteeType(String granteeType)
设置 setGranteeType。
Sets the grantee type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
granteeType | String | grantee 类型(类型 `String`)。The grantee type. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:133–135getGranteeId
public String getGranteeId()
获取 getGranteeId。
Returns the grantee id.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:137–139setGranteeId
public void setGranteeId(String granteeId)
设置 setGranteeId。
Sets the grantee id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
granteeId | String | grantee 标识(类型 `String`)。The grantee id. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:141–143getTier
public String getTier()
获取 getTier。
Returns the tier.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:145–147setTier
public void setTier(String tier)
设置 setTier。
Sets the tier.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tier | String | tier(类型 `String`)。The tier. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:149–151getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
longio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:153–155setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:157–159getCreatedBy
public String getCreatedBy()
获取已创建通过。
Returns the created by.
Stringio/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:161–163setCreatedBy
public void setCreatedBy(String createdBy)
设置已创建通过。
Sets the created by.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdBy | String | 已创建通过(类型 `String`)。The created by. |
io/agentscope/builder/web/persistence/jpa/ResourceShareEntity.java:165–167