Class AuditLogConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.auditlog.AuditLogConversionFunction
- All Implemented Interfaces:
RestConversionFunction<Boolean,RestAuditLogConfiguration>
@Component
public class AuditLogConversionFunction
extends Object
implements RestConversionFunction<Boolean,RestAuditLogConfiguration>
Function to convert
auditLoggingEnabled to RestAuditLogConfiguration- Since:
- 5.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull RestAuditLogConfigurationapply(@NotNull Boolean auditLoggingEnabled, @Nullable Expansion expansion, @NotNull jakarta.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
Constructor Details
-
AuditLogConversionFunction
-
-
Method Details
-
apply
@NotNull public @NotNull RestAuditLogConfiguration apply(@NotNull @NotNull Boolean auditLoggingEnabled, @Nullable @Nullable Expansion expansion, @NotNull @NotNull jakarta.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunctionTransforms a domain object to aAbstractRestModel. The resource will include links.- Specified by:
applyin interfaceRestConversionFunction<Boolean,RestAuditLogConfiguration> - Parameters:
auditLoggingEnabled- The domain object to transformexpansion- The expansion to use when transforming the objecturiInfo- URI info from the request- Returns:
- a RestResource
-