PrivMX DOCS
API Reference/PrivMX Endpoint Java Extra/Core

ItemPolicyBuilder

Builder for creating instances of ItemPolicy.

Constructors

ItemPolicyBuilder

Creates instance of ItemPolicyBuilder initialized with Bridge's default policy values.

public void ItemPolicyBuilder()

ItemPolicyBuilder

Creates instance of ItemPolicyBuilder from existing ItemPolicy instance.

Params

itemPolicy

ItemPolicy

the existing ItemPolicy instance to copy values from.

public void ItemPolicyBuilder(
ItemPolicy itemPolicy
)

Methods

build

Creates ItemPolicy from current state.

public ItemPolicy build()

Returns

ItemPolicy · new ItemPolicy instance created from this builder policies.

setCreate

Sets ItemPolicy#create policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ItemPolicyBuilder setCreate(
ContainerPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

setDelete

Sets ItemPolicy#delete policy value.

Params

policyValue

ItemPolicyValue

policy value to set

public ItemPolicyBuilder setDelete(
ItemPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

setGet

Sets ItemPolicy#get policy value.

Params

policyValue

ItemPolicyValue

policy value to set

public ItemPolicyBuilder setGet(
ItemPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

setListAll

Sets ItemPolicy#listAll policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ItemPolicyBuilder setListAll(
ContainerPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

setListMy

Sets ItemPolicy#listMy policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ItemPolicyBuilder setListMy(
ContainerPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

setUpdate

Sets ItemPolicy#update policy value.

Params

policyValue

ItemPolicyValue

policy value to set

public ItemPolicyBuilder setUpdate(
ItemPolicyValue policyValue
)

Returns

ItemPolicyBuilder · ItemPolicyBuilder instance to allow for method chaining.

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.