@Override public RaptureQueryResult runNativeQuery(String repoType, List<String> queryParams) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, "Not supported"); }
@Override public DocumentWithMeta addTagToDocument(String user, String docPath, String tagUri, String value) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public DocumentWithMeta removeTagsFromDocument(String user, String docPath, List<String> tags) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); } }
/** * Do not use hard codes strings. Use rapture.kernel.Messages.getMessage * and put the message in the property file. This ensures consistent error messages * across the product and will ease localization efforts if the need ever arises. */ public static RaptureException create(String message) { return create(HttpStatus.SC_INTERNAL_SERVER_ERROR, message, null); }
@Override public DocumentWithMeta addTagsToDocument(String user, String docPath, Map<String, String> tagMap) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public DocumentWithMeta removeTagFromDocument(String user, String docPath, String tagUri) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
/** * Do not use hard codes strings. Use rapture.kernel.Messages.getMessage * and put the message in the property file. This ensures consistent error messages * across the product and will ease localization efforts if the need ever arises. */ public static RaptureException create(Integer status, String message) { return create(status, message, null); }
@Override public Long getNextIdGen(Long interval) { if (!valid) throw RaptureExceptionFactory.create("idgen has been deleted"); idgen = idgen + interval; return idgen; }
@Override public long asLong() { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, "Attempt to use array as long"); }
@Override public void clearRemote() { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public boolean removeFromStage(String stage, String key) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public void setIndexProducer(IndexProducer producer) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public StructureSeriesValue asStructure() { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, "Attempt to use array as structure"); }
@Override public void addCommentary(String key, String who, String description, String commentaryKey, String ref) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public DocumentWithMeta addDocument(String key, String value, String user, String comment, boolean mustBeNew) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public void createTag(String user, String tagName) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public boolean removeDocument(String key, String user, String comment) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public DocumentWithMeta addDocumentWithVersion(String disp, String content, String user, String comment, boolean mustBeNew, int expectedVersion) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public void setDocAttribute(RaptureURI uri, DocumentAttribute attribute) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, READ_ONLY_REPOSITORY); }
@Override public boolean removeFromStage(String stage, String key) { throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, "Not supported"); }