Class SharedCredentialConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.sharedcredentials.SharedCredentialConversionFunction
- All Implemented Interfaces:
RestConversionFunction<CredentialsData,
RestSharedCredential>
@Component
public class SharedCredentialConversionFunction
extends Object
implements RestConversionFunction<CredentialsData,RestSharedCredential>
Convert a
CredentialsData
to RestSharedCredential
- Since:
- 5.10
-
Constructor Summary
ConstructorDescriptionSharedCredentialConversionFunction
(LinkService linkService, CredentialsManager credentialsManager, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescription@NotNull RestSharedCredential
apply
(@NotNull CredentialsData input, @NotNull Expansion expansion, @NotNull javax.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, wait
Methods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
Constructor Details
-
SharedCredentialConversionFunction
@Autowired public SharedCredentialConversionFunction(LinkService linkService, CredentialsManager credentialsManager, ProjectManager projectManager)
-
-
Method Details
-
apply
@NotNull public @NotNull RestSharedCredential apply(@NotNull @NotNull CredentialsData input, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunction
Transforms a domain object to aAbstractRestModel
. The resource will include links.- Specified by:
apply
in interfaceRestConversionFunction<CredentialsData,
RestSharedCredential> - Parameters:
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request- Returns:
- a RestResource
-