@Override public final void setPageSize(int pageSize) { ensureCorrectState(); super.setPageSize(pageSize); }
@Override public final int getAvailablePage() { ensureCorrectState(); return super.getAvailablePage(); }
@Override protected final void populateCurrentPage(int page) throws Exception { // Make sure we have correct state ensureCorrectState(); // int from = getFrom(); int to = getTo(); currentListPage_ = lazyList.subList(from, to); }
public String checkAndRepair(final DataStorage[] storages, final boolean autoRepair, final int nThreads) { return SecurityHelper.doPrivilegedAction(new PrivilegedAction<String>() { public String run() { return checkAndRepairAction(storages, autoRepair, nThreads); } }); }
/** * {@inheritDoc} */ public RepositoryEntry getConfiguration() { SecurityHelper.validateSecurityPermission(JCRRuntimePermissions.MANAGE_REPOSITORY_PERMISSION); return config; }
@Override public final int getFrom() { ensureCorrectState(); return super.getFrom(); }
@Override public final List<E> currentPage() throws Exception { ensureCorrectState(); return super.currentPage(); }
@Override public final int getTo() { ensureCorrectState(); return super.getTo(); }
@Override protected final void setAvailablePage(int available) { ensureCorrectState(); super.setAvailablePage(available); }
@Override protected final void checkAndSetPage(int page) throws Exception { ensureCorrectState(); super.checkAndSetPage(page); }
@Override public final int getCurrentPage() { ensureCorrectState(); return super.getCurrentPage(); }
@Override public final int getAvailable() { ensureCorrectState(); return super.getAvailable(); }
@Override public final List<E> getPage(int page) throws Exception { ensureCorrectState(); return super.getPage(page); }
@Override public final int getPageSize() { ensureCorrectState(); return super.getPageSize(); } }
/** * Encode data for use in HTML attributes. * * @param input the string to encode for a HTML attribute * @return input encoded for use as value of a HTML attribute */ public String encodeHTMLAttribute(String input) { return encode(input, IMMUNE_HTMLATTR); }
@Override public void safeEncode(char[] chars, int off, int len, CharWriter writer) throws EncodingException { safeEncode(chars, off, len, writer, IMMUNE_HTML); }
@Override protected final ListAccess<E> connect() throws Exception { return create(state); }
/** * Create a text object from the provided char array. * * @param chars the markup as bytes * @return the text object * @throws IllegalArgumentException if the chars is null */ public static Text create(char[] chars) throws IllegalArgumentException { return new Chars(chars); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { super.readState(in); } }
/** * Create a text object from the provided byte array. * * @param bytes the markup as bytes * @param charset the charset * @return the text object * @throws IllegalArgumentException if the bytes is null */ public static Text create(byte[] bytes, Charset charset) throws IllegalArgumentException { return new Bytes(bytes, charset); }