Modifier | Constructor and Description |
---|---|
protected |
Builder()
Private default constructor.
|
Modifier and Type | Method and Description |
---|---|
Resource.Builder |
action(Action action)
Adds one Action to the list of Actions.
|
Resource.Builder |
actions(List<Action> actions)
Set Actions.
|
Resource |
build()
Construct a new instance of Resource.
|
Resource.Builder |
create(Create create)
Set create.
|
Resource.Builder |
delete(Delete delete)
Set Delete.
|
Resource.Builder |
description(LocalizableString description)
Set the description.
|
Resource.Builder |
description(String description)
Set the description.
|
Resource.Builder |
items(Items items)
Adds items-resource.
|
Resource.Builder |
mvccSupported(Boolean mvccSupported)
Setter for MVCC-supported flag.
|
Resource.Builder |
operations(Operation... operations)
Allocates the operations given in the parameter by their type.
|
Resource.Builder |
parameter(Parameter parameter)
Sets a single supported parameter.
|
Resource.Builder |
parameters(List<Parameter> parameters)
Set multiple supported parameters.
|
Resource.Builder |
patch(Patch patch)
Set Patch.
|
Resource.Builder |
queries(List<Query> queries)
Set Queries.
|
Resource.Builder |
query(Query query)
Adds one Query to the list of queries.
|
Resource.Builder |
read(Read read)
Set Read.
|
Resource.Builder |
reference(Reference reference)
Set a reference.
|
Resource.Builder |
resourceSchema(Schema resourceSchema)
Set the resource schema.
|
Resource.Builder |
subresources(SubResources subresources)
Sets the sub-resources for this resource.
|
Resource.Builder |
title(LocalizableString title)
Set the title.
|
Resource.Builder |
title(String title)
Set the title.
|
Resource.Builder |
update(Update update)
Set Update.
|
public Resource.Builder reference(Reference reference)
reference
- The reference.public Resource.Builder resourceSchema(Schema resourceSchema)
resourceSchema
- The schema of the resource for this path.
Required when any of create, read, update, delete, patch are supportedpublic Resource.Builder title(LocalizableString title)
title
- Title of the endpointpublic Resource.Builder title(String title)
title
- Title of the endpointpublic Resource.Builder description(LocalizableString description)
description
- A description of the endpointpublic Resource.Builder description(String description)
description
- A description of the endpointpublic Resource.Builder create(Create create)
create
- The create operation description, if supportedpublic Resource.Builder read(Read read)
read
- The read operation description, if supportedpublic Resource.Builder update(Update update)
update
- The update operation description, if supportedpublic Resource.Builder delete(Delete delete)
delete
- The delete operation description, if supportedpublic Resource.Builder patch(Patch patch)
patch
- The patch operation description, if supportedpublic Resource.Builder actions(List<Action> actions)
actions
- The list of action operation descriptions, if supportedpublic Resource.Builder action(Action action)
action
- Action operation description to be added to the listpublic Resource.Builder queries(List<Query> queries)
queries
- The list or query operation descriptions, if supportedpublic Resource.Builder query(Query query)
query
- Query operation description to be added to the listpublic Resource.Builder subresources(SubResources subresources)
subresources
- The sub-reosurces definition.public Resource.Builder operations(Operation... operations)
operations
- One or more Operationspublic Resource.Builder mvccSupported(Boolean mvccSupported)
mvccSupported
- Whether this resource supports MVCCpublic Resource.Builder items(Items items)
items
- The definition of the collection itemspublic Resource.Builder parameters(List<Parameter> parameters)
parameters
- Extra parameters supported by the resourcepublic Resource.Builder parameter(Parameter parameter)
parameter
- Extra parameter supported by the resourcepublic Resource build()
Copyright © 2010-2018, ForgeRock All Rights Reserved.