ItemPolicyBuilder
Methods
init()
public init()
init(from:)
Initalises the builder with existing policies.
public init(
from policy: privmx.endpoint.core.ItemPolicy
)
Name | Type | Description |
---|---|---|
policy | privmx.endpoint.core.ItemPolicy | preexisting Policy object. |
build()
This methods returns a ItemPolicy
that was configured by this instance.
public func build(
) -> privmx.endpoint.core.ItemPolicy
Type | Description |
---|---|
privmx.endpoint.core.ItemPolicy | configured `ItemPolicy` |
setGet(_:)
Configures the get
policy
public func setGet(
_ value:ItemPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ItemPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |
setListMy(_:)
Configures the listMy
policy
public func setListMy(
_ value:ContainerPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ContainerPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |
setListAll(_:)
Configures the listAll
policy
public func setListAll(
_ value:ContainerPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ContainerPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |
setCreate(_:)
Configures the create
policy
public func setCreate(
_ value:ContainerPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ContainerPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |
setUpdate(_:)
Configures the update
policy
public func setUpdate(
_ value:ItemPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ItemPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |
setDelete(_:)
Configures the delete
policy
public func setDelete(
_ value:ItemPolicyValue?
) -> ItemPolicyBuilder
Name | Type | Description |
---|---|---|
value | ItemPolicyValue? | the policy value that will be set |
Type | Description |
---|---|
ItemPolicyBuilder | this object for further configuration |