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 classItems.BuilderBuilder to help construct theItems. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceasResource(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description)Builds aResourcefrom thisItemsinstance.booleanequals(Object o)static ItemsfromAnnotatedType(Class<?> type, ApiDescription descriptor, SubResources subResources)Build anItemsfrom an annotated request handler.Action[]getActions()Getter of actions.CreategetCreate()Getter of Create.DeletegetDelete()Getter of Delete.PatchgetPatch()Getter of Patch.ParametergetPathParameter()Get the path parameter.ReadgetRead()Getter of Read.SubResourcesgetSubresources()Getter of sub-resources.UpdategetUpdate()Getter of Update.inthashCode()static Items.Builderitems()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 aResourcefrom thisItemsinstance. 
- 
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 anItemsfrom an annotated request handler.- Parameters:
 type- The annotated type.descriptor- The root descriptor to add definitions to.subResources- The sub resources.- Returns:
 - The built 
Itemsobject. 
 
 - 
 
 -