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

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

Javadoc

Auto generated setter method

Popular methods of RetentionBean

  • <init>
  • setDeleteLocked
    Auto generated setter method
  • setFromDate
    Auto generated setter method
  • setToDate
    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
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Notification (javax.management)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
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