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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to help construct theItems. -
Method Summary
Modifier and TypeMethodDescriptionasResource(boolean mvccSupported, Schema resourceSchema, LocalizableString title, LocalizableString description) Builds aResourcefrom thisItemsinstance.booleanstatic ItemsfromAnnotatedType(Class<?> type, ApiDescription descriptor, SubResources subResources) Build anItemsfrom 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.inthashCode()static Items.Builderitems()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 aResourcefrom thisItemsinstance. -
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.
-