Tabnine Logo
RetentionBean.setFromDate
Code IndexAdd Tabnine to your IDE (free)

How to use
setFromDate
method
in
org.wso2.carbon.registry.properties.stub.beans.xsd.RetentionBean

Best Java code snippets using org.wso2.carbon.registry.properties.stub.beans.xsd.RetentionBean.setFromDate (Showing top 6 results out of 315)

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.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.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.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

object.setFromDate(
   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
org.wso2.carbon.registry.properties.stub.beans.xsdRetentionBeansetFromDate

Javadoc

Auto generated setter method

Popular methods of RetentionBean

  • <init>
  • setDeleteLocked
    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

  • Finding current android device location
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
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