Package org.forgerock.api.models
Class Items
- java.lang.Object
-
- org.forgerock.api.models.Items
-
public final class Items extends Object
Class that represents the Items type in API descriptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Items.Builder
Builder to help construct theItems
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
asResource(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description)
Builds aResource
from thisItems
instance.boolean
equals(Object o)
static Items
fromAnnotatedType(Class<?> type, ApiDescription descriptor, SubResources subResources)
Build anItems
from an annotated request handler.Action[]
getActions()
Getter of actions.Create
getCreate()
Getter of Create.Delete
getDelete()
Getter of Delete.Patch
getPatch()
Getter of Patch.Parameter
getPathParameter()
Get the path parameter.Read
getRead()
Getter of Read.SubResources
getSubresources()
Getter of sub-resources.Update
getUpdate()
Getter of Update.int
hashCode()
static Items.Builder
items()
Create a new Builder for Resoruce.
-
-
-
Method Detail
-
getCreate
public Create getCreate()
Getter of Create.- Returns:
- Create
-
getRead
public Read getRead()
Getter of Read.- Returns:
- Read
-
getUpdate
public Update getUpdate()
Getter of Update.- Returns:
- Update
-
getDelete
public Delete getDelete()
Getter of Delete.- Returns:
- Delete
-
getPatch
public Patch getPatch()
Getter of Patch.- Returns:
- Patch
-
getActions
public Action[] getActions()
Getter of actions.- Returns:
- Actions
-
getSubresources
public SubResources getSubresources()
Getter of sub-resources.- Returns:
- Sub-resources
-
getPathParameter
public Parameter getPathParameter()
Get the path parameter.- Returns:
- The path parameter.
-
asResource
public Resource asResource(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description)
Builds aResource
from thisItems
instance.
-
items
public static Items.Builder 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.
-
-