congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.owncloud.android.lib.resources.shares
Code IndexAdd Tabnine to your IDE (free)

How to use com.owncloud.android.lib.resources.shares

Best Java code snippets using com.owncloud.android.lib.resources.shares (Showing top 20 results out of 315)

origin: owncloud/android-library

/**
 * Sets or clears permission to update a folder or folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setUpdatePermission(boolean enabled) {
  updatePermission(OCShare.UPDATE_PERMISSION_FLAG, enabled);
  return this;
}
origin: nextcloud/android-library

/**
 * Reconstruct from parcel
 * 
 * @param source The source parcel
 */    
protected OCShare(Parcel source) {
  readFromParcel(source);
}

origin: nextcloud/android-library

public OCShare() {
  super();
  resetData();
}

origin: nextcloud/android-library

private void fixPathForFolder(OCShare share) {
  if (share.isFolder() && share.getPath() != null && share.getPath().length() > 0 &&
      !share.getPath().endsWith(FileUtils.PATH_SEPARATOR)) {
    share.setPath(share.getPath() + FileUtils.PATH_SEPARATOR);
  }
}
origin: nextcloud/android-library

private boolean isValidShare(OCShare share) {
  return (share.getRemoteId() > -1);
}
origin: nextcloud/android-library

public boolean isPasswordProtected() {
  if (!ShareType.PUBLIC_LINK.equals(shareType)) {
    return isPasswordProtected;
  } else {
    return shareWith.length() > 0;
  }
}
origin: owncloud/android-library

/**
 * Parse a node, to obtain its text. Needs readText method
 * @param parser
 * @param node
 * @return Text of the node
 * @throws XmlPullParserException
 * @throws IOException
 */
private String readNode (XmlPullParser parser, String node) throws XmlPullParserException,
    IOException{
  parser.require(XmlPullParser.START_TAG, ns, node);
  String value = readText(parser);
  //Log_OC.d(TAG, "node= " + node + ", value= " + value);
  parser.require(XmlPullParser.END_TAG, ns, node);
  return value;
}

origin: owncloud/android-library

private void fixPathForFolder(OCShare share) {
  if (share.isFolder() && share.getPath() != null && share.getPath().length() > 0 &&
      !share.getPath().endsWith(FileUtils.PATH_SEPARATOR)) {
    share.setPath(share.getPath() + FileUtils.PATH_SEPARATOR);
  }
}
origin: owncloud/android-library

/**
 * Sets or clears permission to create files in share folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setCreatePermission(boolean enabled) {
  updatePermission(OCShare.CREATE_PERMISSION_FLAG, enabled);
  return this;
}
origin: owncloud/android-library

/**
 * Reconstruct from parcel
 *
 * @param source The source parcel
 */
protected OCShare(Parcel source) {
  readFromParcel(source);
}
origin: owncloud/android-library

public OCShare() {
  super();
  resetData();
}
origin: owncloud/android-library

private boolean isValidShare(OCShare share) {
  return (share.getRemoteId() > -1);
}
origin: owncloud/android-library

public boolean isPasswordProtected() {
  return ShareType.PUBLIC_LINK.equals(mShareType) && mShareWith.length() > 0;
}
origin: nextcloud/android-library

/**
 * Parse a node, to obtain its text. Needs readText method
 * @param parser
 * @param node
 * @return Text of the node
 * @throws XmlPullParserException
 * @throws IOException
 */
private String readNode (XmlPullParser parser, String node) throws XmlPullParserException,
    IOException{
  parser.require(XmlPullParser.START_TAG, ns, node);
  String value = readText(parser);
  //Log_OC.d(TAG, "node= " + node + ", value= " + value);
  parser.require(XmlPullParser.END_TAG, ns, node);
  return value;
}

origin: nextcloud/android-library

/**
 * Sets or clears permission to update a folder or folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setUpdatePermission(boolean enabled) {
  updatePermission(OCShare.UPDATE_PERMISSION_FLAG, enabled);
  return this;
}
origin: owncloud/android-library

/**
 * Sets or clears permission to reshare a file or folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setSharePermission(boolean enabled) {
  updatePermission(OCShare.SHARE_PERMISSION_FLAG, enabled);
  return this;
}
origin: owncloud/android-library

/**
 * Sets or clears permission to delete files in a shared folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setDeletePermission(boolean enabled) {
  updatePermission(OCShare.DELETE_PERMISSION_FLAG, enabled);
  return this;
}
origin: nextcloud/android-library

/**
 * Sets or clears permission to reshare a file or folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setSharePermission(boolean enabled) {
  updatePermission(OCShare.SHARE_PERMISSION_FLAG, enabled);
  return this;
}
origin: nextcloud/android-library

/**
 * Sets or clears permission to create files in share folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setCreatePermission(boolean enabled) {
  updatePermission(OCShare.CREATE_PERMISSION_FLAG, enabled);
  return this;
}
origin: nextcloud/android-library

/**
 * Sets or clears permission to delete files in a shared folder.
 *
 * @param enabled       'True' to set, 'false' to clear.
 * @return              Instance to builder itself, to allow consecutive calls to setters
 */
public SharePermissionsBuilder setDeletePermission(boolean enabled) {
  updatePermission(OCShare.DELETE_PERMISSION_FLAG, enabled);
  return this;
}
com.owncloud.android.lib.resources.shares

Most used classes

  • CreateRemoteShareOperation
    Creates a new share. This allows sharing with a user or group or as a link.
  • GetRemoteShareOperation
    Get the data about a Share resource, known its remote ID.
  • GetRemoteShareesOperation
    Created by masensio on 08/10/2015. Retrieves a list of sharees (possible targets of a share) from th
  • GetRemoteSharesForFileOperation
    Provide a list shares for a specific file. The input is the full path of the desired file. The outpu
  • GetRemoteSharesOperation
    Get the data from the server about ALL the known shares owned by the requester.
  • RemoveRemoteShareOperation,
  • SharePermissionsBuilder,
  • ShareToRemoteOperationResultParser,
  • ShareType,
  • ShareXMLParser,
  • ShareParserResult,
  • ShareUtils,
  • UpdateRemoteShareOperation
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