public class RMapAPI extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RMapAPI.BulkResult |
(package private) static class |
RMapAPI.BulkResultResponse |
(package private) static class |
RMapAPI.BulkResultStatus |
(package private) static class |
RMapAPI.ItemResult |
(package private) static class |
RMapAPI.ItemResultError |
(package private) static class |
RMapAPI.ItemResultMessage |
static class |
RMapAPI.Researcher |
(package private) static class |
RMapAPI.RM_HRef |
(package private) static class |
RMapAPI.RM_ItemsParser<T extends RMJson.RM_BaseSet> |
(package private) static class |
RMapAPI.RM_Links |
static class |
RMapAPI.RM_Researcher |
(package private) static class |
RMapAPI.RM_ResearcherItems |
static class |
RMapAPI.RMapScope |
static class |
RMapAPI.Token |
Modifier and Type | Field and Description |
---|---|
(package private) static AtomicLong |
api_accesses |
(package private) static AtomicLong |
api_failures |
static Semaphore |
apiRegisters |
static Semaphore |
apiRetrievers |
(package private) static ArrayList<RMapAPI.BulkResult> |
l_api_results |
(package private) static PrintWriter |
logWriter |
(package private) static TreeMap<String,Integer> |
m_summary_error_counter |
(package private) static TreeMap<String,Integer> |
m_summary_message_counter |
(package private) static Pattern |
p_edb_url |
static int |
SIMULTANEOUS_REGISTERs |
static int |
SIMULTANEOUS_RETRIEVERs |
(package private) static AtomicLong |
summary_error_items |
(package private) static AtomicLong |
summary_success_items |
(package private) static AtomicLong |
summary_total_items |
Constructor and Description |
---|
RMapAPI() |
static PrintWriter logWriter
static ArrayList<RMapAPI.BulkResult> l_api_results
static AtomicLong api_accesses
static AtomicLong api_failures
static AtomicLong summary_total_items
static AtomicLong summary_success_items
static AtomicLong summary_error_items
public static final int SIMULTANEOUS_RETRIEVERs
public static Semaphore apiRetrievers
public static final int SIMULTANEOUS_REGISTERs
public static Semaphore apiRegisters
static Pattern p_edb_url
static void printSummary()
public static void setTopDir(File dir, boolean logging)
public static void initialize(UTLF config)
public static void terminate()
public static String createJWT()
public static RMapAPI.Token requestToken(String scope)
public static boolean retrieveFile(RMapAPI.Token token, String arg, PrintStream dst)
public static void retrieveResearcherInformation(String id, boolean forceUpdate, File dstDir, Map<String,RMJson.RM_Profile> m_profiles) throws IOException
IOException
public static boolean retrieveResearcherProfile(String id, RMapAPI.RMapScope rmapScope, boolean forceUpdate, File dstDir, Map<String,RMJson.RM_Profile> m_profiles) throws IOException
IOException
public static Map<String,RMJson.RM_Profile> retrieveResearcherProfiles(RMapAPI.RMapScope rmapScope, boolean forceUpdate, Map<String,RMJson.RM_Profile> map)
public static Map<String,RMJson.RM_Profile> retrieveAll(boolean forceUpdate)
public static RMapAPI.BulkResult registerFile(String arg, File file, PrintWriter log)
public static CharSequence createRMJsonValueForRegister(JsonObject prefix, String clause, JsonValue value, JsonObject postfix, JSONUtility.JSONContext ctx)
public static CharSequence createRMJsonValueForRegister(String user_id, Researchmap_definition.RMapTable table, String id, RMJson.RM_Object rmobj, JSONUtility.JSONContext ctx)
public static CharSequence createRMJsonValueForForceRegister(String user_id, Researchmap_definition.RMapTable table, RMJson.RM_Object rmobj, JSONUtility.JSONContext ctx)
EDB Working Group at Tue Jun 10 17:08:59 JST 2025