/** * Creates a builder with the default operation name of defined in the {@code operationName} parameter. * <p/> * While this seems odd to add a deprecated method from the start, the transaction extension requires a * separate operation as there are two relative paths. Other extensions should not use this method and if the * transaction subsystem changes to use a proper resource for the {@code object-store}, this method should be * removed. * * @param operationName the name of the operation to register * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ @Deprecated public static Builder of(final String operationName, final PathManager pathManager) { Assert.checkNotNullParam("operationName", operationName); Assert.checkNotNullParam("pathManager", pathManager); return new Builder(operationName, pathManager); }
/** * Creates a builder with the default operation name of defined in the {@code operationName} parameter. * <p/> * While this seems odd to add a deprecated method from the start, the transaction extension requires a * separate operation as there are two relative paths. Other extensions should not use this method and if the * transaction subsystem changes to use a proper resource for the {@code object-store}, this method should be * removed. * * @param operationName the name of the operation to register * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ @Deprecated public static Builder of(final String operationName, final PathManager pathManager) { Assert.checkNotNullParam("operationName", operationName); Assert.checkNotNullParam("pathManager", pathManager); return new Builder(operationName, pathManager); }
/** * Creates a builder with the default operation name of defined in the {@code operationName} parameter. * <p/> * While this seems odd to add a deprecated method from the start, the transaction extension requires a * separate operation as there are two relative paths. Other extensions should not use this method and if the * transaction subsystem changes to use a proper resource for the {@code object-store}, this method should be * removed. * * @param operationName the name of the operation to register * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ @Deprecated public static Builder of(final String operationName, final PathManager pathManager) { if (pathManager == null) { throw ControllerMessages.MESSAGES.nullVar("pathManager"); } if (operationName == null) { throw ControllerMessages.MESSAGES.nullVar("operationName"); } return new Builder(operationName, pathManager); }
/** * Creates a builder with the default operation name of defined in the {@code operationName} parameter. * <p/> * While this seems odd to add a deprecated method from the start, the transaction extension requires a * separate operation as there are two relative paths. Other extensions should not use this method and if the * transaction subsystem changes to use a proper resource for the {@code object-store}, this method should be * removed. * * @param operationName the name of the operation to register * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ @Deprecated public static Builder of(final String operationName, final PathManager pathManager) { if (pathManager == null) { throw ControllerMessages.MESSAGES.nullVar("pathManager"); } if (operationName == null) { throw ControllerMessages.MESSAGES.nullVar("operationName"); } final OperationDefinition operationDefinition = new SimpleOperationDefinitionBuilder(operationName, new ResolvePathResourceDescriptionResolver(operationName)) .addParameter(ResolvePathHandler.RELATIVE_TO_ONLY) .setReplyType(ModelType.STRING) .build(); return new Builder(operationDefinition, pathManager); }
/** * Creates a builder with the default operation name of {@code resolve-path}. * * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ public static Builder of(final PathManager pathManager) { if (pathManager == null) { throw ControllerMessages.MESSAGES.nullVar("pathManager"); } return new Builder(DEFAULT_OPERATION_DEFINITION, pathManager); }
/** * Creates a builder with the default operation name of {@code resolve-path}. * * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ public static Builder of(final PathManager pathManager) { Assert.checkNotNullParam("pathManager", pathManager); return new Builder(OPERATION_NAME, pathManager); }
/** * Creates a builder with the default operation name of {@code resolve-path}. * * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ public static Builder of(final PathManager pathManager) { Assert.checkNotNullParam("pathManager", pathManager); return new Builder(OPERATION_NAME, pathManager); }
/** * Creates a builder with the default operation name of {@code resolve-path}. * * @param pathManager the path manager used to resolve the path * * @return the operation handler builder */ public static Builder of(final PathManager pathManager) { if (pathManager == null) { throw ControllerMessages.MESSAGES.nullVar("pathManager"); } return new Builder(OPERATION_NAME, pathManager); }