/** * Retrieving the length of the properties in selected registry resource * * @return * @throws RegistryException */ public int getPropertiesLenght() throws RegistryException { String path = SecureVaultConstants.ENCRYPTED_PROPERTY_CONFIG_REGISTRY_PATH; PropertiesBean bean = null; try { bean = propertAdminServicestub.getProperties(path, "no"); } catch (Exception axisFault) { String msg = "Failed to initiate resource service client. " + axisFault.getMessage(); log.error(msg, axisFault); throw new RegistryException(msg, axisFault); } return bean.getSysProperties().length; }
int start = (int) ((pageNumber) * itemPerPage); if (start >= 0 && bean.getSysProperties() != null && bean.getSysProperties().length > 0) { int length = start > 0 ? ((bean.getSysProperties().length - start) - 1) : bean.getSysProperties().length; if (length > itemPerPage) { length = itemPerPage; for (int i = 0; i <= itemPerPage - 1; i++) { if (i < prams.length) { prams[i] = bean.getSysProperties()[i + start]; bean.setLifecycleProperties(new String[0]); if (bean.getSysProperties() == null) { bean.setSysProperties(new String[0]);