get the `` primary '' connection the current user has to the provider of the given api . concode_field_sep ConnectionFactoryLocator connectionFactoryLocator concode_elem_sep ConnectionService connService concode_elem_sep String userId concode_field_sep MultiValueMap<String,Connection<?>> findAllConnections concode_elem_sep Connection<?> getConnection concode_elem_sep Connection<A> getConnection concode_elem_sep void removeConnection concode_elem_sep List<Connection<A>> findConnections concode_elem_sep List<Connection<?>> findConnections concode_elem_sep void updateConnection concode_elem_sep void addConnection concode_elem_sep void removeConnections concode_elem_sep String getProviderId concode_elem_sep Connection<A> findPrimaryConnection concode_elem_sep Connection<?> findPrimaryConnection concode_elem_sep MultiValueMap<String,Connection<?>> findConnectionsToUsers
Connection < A > function ( Class < A > arg0 ) { String loc0 = getProviderId ( arg0 ) ; Connection < A > loc1 = ( Connection < A > ) findPrimaryConnection ( loc0 ) ; if ( loc1 == null ) { throw new NotConnectedException ( loc0 ) ; } return loc1 ; }