Codota Logo
CapabilityBooleanType.fromBooleanValue
Code IndexAdd Codota to your IDE (free)

How to use
fromBooleanValue
method
in
com.owncloud.android.lib.resources.status.CapabilityBooleanType

Best Java code snippets using com.owncloud.android.lib.resources.status.CapabilityBooleanType.fromBooleanValue (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: owncloud/android-library

JSONObject respFilesSharing = respCapabilities.getJSONObject(NODE_FILES_SHARING);
if (respFilesSharing.has(PROPERTY_API_ENABLED)) {
  capability.setFilesSharingApiEnabled(CapabilityBooleanType.fromBooleanValue(
      respFilesSharing.getBoolean(PROPERTY_API_ENABLED)));
  capability.setFilesSharingPublicEnabled(CapabilityBooleanType.fromBooleanValue(
      respPublic.getBoolean(PROPERTY_ENABLED)));
  if(respPublic.has(NODE_PASSWORD)) {
    capability.setFilesSharingPublicPasswordEnforced(
        CapabilityBooleanType.fromBooleanValue(
        respPublic.getJSONObject(NODE_PASSWORD).getBoolean(PROPERTY_ENFORCED)));
    JSONObject respExpireDate = respPublic.getJSONObject(NODE_EXPIRE_DATE);
    capability.setFilesSharingPublicExpireDateEnabled(
        CapabilityBooleanType.fromBooleanValue(
            respExpireDate.getBoolean(PROPERTY_ENABLED)));
    if (respExpireDate.has(PROPERTY_DAYS)) {
          CapabilityBooleanType.fromBooleanValue(
              respExpireDate.getBoolean(PROPERTY_ENFORCED)));
    capability.setFilesSharingPublicUpload(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD)));
    capability.setFilesSharingPublicSupportsUploadOnly(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD_ONLY)));
    capability.setFilesSharingPublicMultiple(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_MULTIPLE)));
origin: nextcloud/android-library

JSONObject respFilesSharing = respCapabilities.getJSONObject(NODE_FILES_SHARING);
if (respFilesSharing.has(PROPERTY_API_ENABLED)) {
  capability.setFilesSharingApiEnabled(CapabilityBooleanType.fromBooleanValue(
      respFilesSharing.getBoolean(PROPERTY_API_ENABLED)));
  capability.setFilesSharingPublicEnabled(CapabilityBooleanType.fromBooleanValue(
      respPublic.getBoolean(PROPERTY_ENABLED)));
  if(respPublic.has(NODE_PASSWORD)) {
    capability.setFilesSharingPublicPasswordEnforced(
        CapabilityBooleanType.fromBooleanValue(
            respPublic.getJSONObject(NODE_PASSWORD).getBoolean(PROPERTY_ENFORCED)));
        CapabilityBooleanType.fromBooleanValue(
            respPublic.getBoolean(NODE_FILES_DROP))
    );
    JSONObject respExpireDate = respPublic.getJSONObject(NODE_EXPIRE_DATE);
    capability.setFilesSharingPublicExpireDateEnabled(
        CapabilityBooleanType.fromBooleanValue(
            respExpireDate.getBoolean(PROPERTY_ENABLED)));
    if (respExpireDate.has(PROPERTY_DAYS)) {
          CapabilityBooleanType.fromBooleanValue(
              respExpireDate.getBoolean(PROPERTY_ENFORCED)));
    capability.setFilesSharingPublicUpload(CapabilityBooleanType.fromBooleanValue(
        respPublic.getBoolean(PROPERTY_UPLOAD)));
  capability.setFilesSharingUserSendMail(CapabilityBooleanType.fromBooleanValue(
com.owncloud.android.lib.resources.statusCapabilityBooleanTypefromBooleanValue

Popular methods of CapabilityBooleanType

  • getValue
  • isTrue

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTextField (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now