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

How to use
setToDate
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.setToDate (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.setToDate(
   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
org.wso2.carbon.registry.properties.stub.beans.xsdRetentionBeansetToDate

Javadoc

Auto generated setter method

Popular methods of RetentionBean

  • <init>
  • setDeleteLocked
    Auto generated setter method
  • setFromDate
    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

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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