private Response addSpaceACLsToResponse ( ResponseBuilder response , String spaceID , String storeID ) throws ResourceException { Map < String , String > aclProps = new HashMap < String , String > ( ) ; Map < String , AclType > acls = spaceResource . getSpaceACLs ( spaceID , storeID ) ; for ( String key : acls . keySet ( ) ) { aclProps . put ( key , acls . get ( key ) . name ( ) ) ; } return addPropertiesToResponse ( response , aclProps ) ; }
Adds the ACLs of a space as header values to the response .