Package org.forgerock.api.models
Class Items
java.lang.Object
org.forgerock.api.models.Items
Class that represents the Items type in API descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to help construct theItems
. -
Method Summary
Modifier and TypeMethodDescriptionasResource
(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description) Builds aResource
from thisItems
instance.boolean
static Items
fromAnnotatedType
(Class<?> type, ApiDescription descriptor, SubResources subResources) Build anItems
from an annotated request handler.Action[]
Getter of actions.Getter of Create.Getter of Delete.getPatch()
Getter of Patch.Get the path parameter.getRead()
Getter of Read.Getter of sub-resources.Getter of Update.int
hashCode()
static Items.Builder
items()
Create a new Builder for Resoruce.
-
Method Details
-
getCreate
Getter of Create.- Returns:
- Create
-
getRead
Getter of Read.- Returns:
- Read
-
getUpdate
Getter of Update.- Returns:
- Update
-
getDelete
Getter of Delete.- Returns:
- Delete
-
getPatch
Getter of Patch.- Returns:
- Patch
-
getActions
Getter of actions.- Returns:
- Actions
-
getSubresources
Getter of sub-resources.- Returns:
- Sub-resources
-
getPathParameter
Get the path parameter.- Returns:
- The path parameter.
-
equals
-
hashCode
public int hashCode() -
asResource
public Resource asResource(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description) Builds aResource
from thisItems
instance. -
items
Create a new Builder for Resoruce.- Returns:
- Builder
-
fromAnnotatedType
public static Items fromAnnotatedType(Class<?> type, ApiDescription descriptor, SubResources subResources) Build anItems
from an annotated request handler.- Parameters:
type
- The annotated type.descriptor
- The root descriptor to add definitions to.subResources
- The sub resources.- Returns:
- The built
Items
object.
-