Class Update

java.lang.Object
org.forgerock.api.models.Operation
org.forgerock.api.models.Update

public final class Update extends Operation
Class that represents the Create Operation type in API descriptor.
  • Method Details

    • update

      public static Update.Builder update()
      Creates a new builder for Operation.
      Returns:
      New builder instance
    • allocateToResource

      protected void allocateToResource(Resource.Builder resourceBuilder)
      Allocates the Update operation type to the given Resource Builder.
      Specified by:
      allocateToResource in class Operation
      Parameters:
      resourceBuilder - - Resource Builder to add the operation
    • fromAnnotation

      public static Update fromAnnotation(Update update, ApiDescription descriptor, Class<?> relativeType)
      Builds an Update object from the data stored in the annotation.
      Parameters:
      update - Update annotation that stores the data
      descriptor - The root descriptor to add definitions to.
      relativeType - The type relative to which schema resources should be resolved.
      Returns:
      Update instance