@ SuppressWarnings ( "unchecked" ) public < P extends ParaObject > List < P > getChildren ( ParaObject obj , String type2 , Pager ... pager ) { if ( obj == null || obj . getId ( ) == null || type2 == null ) { return Collections . emptyList ( ) ; } MultivaluedMap < String , String > params = new MultivaluedHashMap <> ( ) ; params . putSingle ( "childrenonly" , "true" ) ; params . putAll ( pagerToParams ( pager ) ) ; String url = Utils . formatMessage ( "{0}/links/{1}" , obj . getObjectURI ( ) , type2 ) ; return getItems ( ( Map < String , Object > ) getEntity ( invokeGet ( url , params ) , Map . class ) , pager ) ; }
Returns all child objects linked to this object .