congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RetentionBean.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.wso2.carbon.registry.properties.stub.beans.xsd.RetentionBean
constructor

Best Java code snippets using org.wso2.carbon.registry.properties.stub.beans.xsd.RetentionBean.<init> (Showing top 10 results out of 315)

origin: org.wso2.appserver/org.wso2.appserver.integration.common.clients

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;
}
origin: org.wso2.es/org.wso2.es.integration.common.clients

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;
}
origin: org.wso2.ei/admin-clients

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;
}
origin: org.wso2.esb/admin-clients

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;
}
origin: org.wso2.ei/admin-clients

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);
  }
}
origin: org.wso2.carbon.registry/org.wso2.carbon.registry.security.ui

/**
 * Method to set resource retention properties of a resource.
 *
 * @param request   Http request with parameters.
 * @throws RegistryException throws if there is an error
 */
public boolean setRetentionProperties(HttpServletRequest request) throws RegistryException {
  String path = request.getParameter(PATH);
  try {
    RetentionBean bean;
    String fromDate = request.getParameter("fromDate");
    if (fromDate == null || "".equals(fromDate)) {
      bean = null;
    } else {
      bean = new RetentionBean();
      bean.setFromDate(fromDate);
      bean.setToDate(request.getParameter("toDate"));
      String lockedOperationsParam = request.getParameter("lockedOperations");
      bean.setWriteLocked(lockedOperationsParam.contains("write"));
      bean.setDeleteLocked(lockedOperationsParam.contains("delete"));
    }
    propertAdminServicestub.setRetentionProperties(path, bean);
  } catch (RemoteException | PropertiesAdminServiceRegistryExceptionException e) {
    throw new RegistryException("Failed to add retention to resource at path" + path, e);
  }
  return true;
}
origin: org.wso2.appserver/org.wso2.appserver.integration.common.clients

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);
}
origin: org.wso2.esb/admin-clients

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);
  }
}
origin: org.wso2.es/org.wso2.es.integration.common.clients

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);
  try {
    return 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);
  }
}
origin: org.wso2.carbon.registry/org.wso2.carbon.registry.properties.stub

new RetentionBean();
org.wso2.carbon.registry.properties.stub.beans.xsdRetentionBean<init>

Popular methods of RetentionBean

  • setDeleteLocked
    Auto generated setter method
  • setFromDate
    Auto generated setter method
  • setToDate
    Auto generated setter method
  • setWriteLocked
    Auto generated setter method
  • generatePrefix
  • registerPrefix
    Register a namespace prefix
  • serialize
  • setReadOnly
    Auto generated setter method
  • setUserName
    Auto generated setter method
  • writeAttribute
    Util method to write an attribute without the ns prefix
  • writeStartElement
    Utility method to write an element start tag.
  • writeStartElement

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now