/** * Auto generated setter method * @param param Properties */ public void setProperties(org.wso2.carbon.registry.properties.stub.utils.xsd.Property[] param){ validateProperties(param); localPropertiesTracker = true; this.localProperties=param; }
/** * Auto generated setter method * @param param SysProperties */ public void setSysProperties(java.lang.String[] param){ validateSysProperties(param); localSysPropertiesTracker = true; this.localSysProperties=param; }
/** * Auto generated setter method * @param param ValidationProperties */ public void setValidationProperties(java.lang.String[] param){ validateValidationProperties(param); localValidationPropertiesTracker = true; this.localValidationProperties=param; }
public boolean setRetentionProperties(String path, String mode, String fromDate, String toDate) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); retentionBean.setWriteLocked(mode.contains("write")); retentionBean.setDeleteLocked(mode.contains("delete")); retentionBean.setFromDate(fromDate); retentionBean.setToDate(toDate); return propertiesAdminServiceStub.setRetentionProperties(path, retentionBean); }
public RetentionBean getRetentionProperties(String path) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); try { retentionBean = propertiesAdminServiceStub.getRetentionProperties(path); } catch (RemoteException e) { log.error("get retention properties failed ", e); throw new RemoteException("get retention properties failed ", e); } catch (PropertiesAdminServiceRegistryExceptionException e) { log.error("get retention properties failed ", e); throw new PropertiesAdminServiceRegistryExceptionException("get retention properties failed ", e); } return retentionBean; }
/** * Util method to write an attribute without the ns prefix */ private void writeAttribute(java.lang.String namespace,java.lang.String attName, java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttribute(namespace,attName,attValue); } }
/** * Util method to write an attribute without the ns prefix */ private void writeAttribute(java.lang.String namespace,java.lang.String attName, java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttribute(namespace,attName,attValue); } }
/** * Utility method to write an element start tag. */ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeStartElement(namespace, localPart); } else { if (namespace.length() == 0) { prefix = ""; } else if (prefix == null) { prefix = generatePrefix(namespace); } xmlWriter.writeStartElement(prefix, localPart, namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } }
/** * Utility method to write an element start tag. */ private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeStartElement(namespace, localPart); } else { if (namespace.length() == 0) { prefix = ""; } else if (prefix == null) { prefix = generatePrefix(namespace); } xmlWriter.writeStartElement(prefix, localPart, namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } }
/** * Auto generated setter method * @param param LifecycleProperties */ public void setLifecycleProperties(java.lang.String[] param){ validateLifecycleProperties(param); localLifecyclePropertiesTracker = true; this.localLifecycleProperties=param; }
/** * 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; }
public void setRetentionProperties(String path, String mode, String fromDate, String toDate) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); retentionBean.setWriteLocked(mode.contains("write")); retentionBean.setDeleteLocked(mode.contains("delete")); retentionBean.setFromDate(fromDate); retentionBean.setToDate(toDate); try { propertiesAdminServiceStub.setRetentionProperties(path, retentionBean); } catch (RemoteException e) { log.error("Set retention properties failed ", e); throw new RemoteException("Set retention properties failed ", e); } catch (PropertiesAdminServiceRegistryExceptionException e) { log.error("Set retention lock failed ", e); throw new PropertiesAdminServiceRegistryExceptionException("Set retention properties failed ", e); } }
public RetentionBean getRetentionProperties(String path) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); try { retentionBean = propertiesAdminServiceStub.getRetentionProperties(path); } catch (RemoteException e) { log.error("get retention properties failed ", e); throw new RemoteException("get retention properties failed ", e); } catch (PropertiesAdminServiceRegistryExceptionException e) { log.error("get retention properties failed ", e); throw new PropertiesAdminServiceRegistryExceptionException("get retention properties failed ", e); } return retentionBean; }
/** * Util method to write an attribute without the ns prefix */ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName, javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String attributeNamespace = qname.getNamespaceURI(); java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); if (attributePrefix == null) { attributePrefix = registerPrefix(xmlWriter, attributeNamespace); } java.lang.String attributeValue; if (attributePrefix.trim().length() > 0) { attributeValue = attributePrefix + ":" + qname.getLocalPart(); } else { attributeValue = qname.getLocalPart(); } if (namespace.equals("")) { xmlWriter.writeAttribute(attName, attributeValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttribute(namespace, attName, attributeValue); } } /**
/** * Util method to write an attribute without the ns prefix */ private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName, javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String attributeNamespace = qname.getNamespaceURI(); java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); if (attributePrefix == null) { attributePrefix = registerPrefix(xmlWriter, attributeNamespace); } java.lang.String attributeValue; if (attributePrefix.trim().length() > 0) { attributeValue = attributePrefix + ":" + qname.getLocalPart(); } else { attributeValue = qname.getLocalPart(); } if (namespace.equals("")) { xmlWriter.writeAttribute(attName, attributeValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttribute(namespace, attName, attributeValue); } } /**
/** * Register a namespace prefix */ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); } xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } return prefix; }
/** * Register a namespace prefix */ private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) { prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); } xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } return prefix; }
public RetentionBean getRetentionProperties(String path) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); try { retentionBean = propertiesAdminServiceStub.getRetentionProperties(path); } catch (RemoteException e) { log.error("get retention properties failed ", e); throw new RemoteException("get retention properties failed ", e); } catch (PropertiesAdminServiceRegistryExceptionException e) { log.error("get retention properties failed ", e); throw new PropertiesAdminServiceRegistryExceptionException("get retention properties failed ", e); } return retentionBean; }
public RetentionBean getRetentionProperties(String path) throws RemoteException, PropertiesAdminServiceRegistryExceptionException { RetentionBean retentionBean = new RetentionBean(); try { retentionBean = propertiesAdminServiceStub.getRetentionProperties(path); } catch (RemoteException e) { log.error("get retention properties failed ", e); throw new RemoteException("get retention properties failed ", e); } catch (PropertiesAdminServiceRegistryExceptionException e) { log.error("get retention properties failed ", e); throw new PropertiesAdminServiceRegistryExceptionException("get retention properties failed ", e); } return retentionBean; }