@Component public class GlobalPermissionConversionFunction extends Object implements RestConversionFunction<Iterable<org.acegisecurity.acls.Permission>,RestGlobalPermission>
Permission
to RestGlobalPermission
Constructor and Description |
---|
GlobalPermissionConversionFunction(LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestGlobalPermission |
apply(Iterable<org.acegisecurity.acls.Permission> input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
Iterable<BambooPermission> |
extractPermissions(RestGlobalPermission restGlobalPermission) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public GlobalPermissionConversionFunction(LinkService linkService)
@NotNull public RestGlobalPermission apply(@NotNull Iterable<org.acegisecurity.acls.Permission> input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<Iterable<org.acegisecurity.acls.Permission>,RestGlobalPermission>
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestpublic Iterable<BambooPermission> extractPermissions(@NotNull RestGlobalPermission restGlobalPermission)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.