public class DbxUserFilePropertiesRequests
extends java.lang.Object
| Constructor and Description | 
|---|
| DbxUserFilePropertiesRequests(DbxRawClientV2 client) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | propertiesAdd(java.lang.String path,
             java.util.List<PropertyGroup> propertyGroups)Add property groups to a Dropbox file. | 
| void | propertiesOverwrite(java.lang.String path,
                   java.util.List<PropertyGroup> propertyGroups)Overwrite property groups associated with a file. | 
| void | propertiesRemove(java.lang.String path,
                java.util.List<java.lang.String> propertyTemplateIds)Permanently removes the specified property group from the file. | 
| PropertiesSearchResult | propertiesSearch(java.util.List<PropertiesSearchQuery> queries)Search across property templates for particular property field values. | 
| PropertiesSearchResult | propertiesSearch(java.util.List<PropertiesSearchQuery> queries,
                TemplateFilter templateFilter)Search across property templates for particular property field values. | 
| PropertiesSearchResult | propertiesSearchContinue(java.lang.String cursor)Once a cursor has been retrieved from  propertiesSearch(List,TemplateFilter), use
 this to paginate through all search results. | 
| void | propertiesUpdate(java.lang.String path,
                java.util.List<PropertyGroupUpdate> updatePropertyGroups)Add, update or remove properties associated with the supplied file and
 templates. | 
| AddTemplateResult | templatesAddForUser(java.lang.String name,
                   java.lang.String description,
                   java.util.List<PropertyFieldTemplate> fields)Add a template associated with a user. | 
| GetTemplateResult | templatesGetForUser(java.lang.String templateId)Get the schema for a specified template. | 
| ListTemplateResult | templatesListForUser()Get the template identifiers for a team. | 
| void | templatesRemoveForUser(java.lang.String templateId)Permanently removes the specified template created from  templatesAddForUser(String,String,List). | 
| UpdateTemplateResult | templatesUpdateForUser(java.lang.String templateId)Update a template associated with a user. | 
| TemplatesUpdateForUserBuilder | templatesUpdateForUserBuilder(java.lang.String templateId)Update a template associated with a user. | 
public DbxUserFilePropertiesRequests(DbxRawClientV2 client)
public void propertiesAdd(java.lang.String path,
                          java.util.List<PropertyGroup> propertyGroups)
                   throws AddPropertiesErrorException,
                          DbxException
templatesAddForUser(String,String,List) or
 templatesAddForTeam to create new templates.path - A unique identifier for the file or folder. Must match
     pattern "/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)" and not be
     null.propertyGroups - The property groups which are to be added to a
     Dropbox file. Must not contain a null item and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.AddPropertiesErrorExceptionDbxExceptionpublic void propertiesOverwrite(java.lang.String path,
                                java.util.List<PropertyGroup> propertyGroups)
                         throws InvalidPropertyGroupErrorException,
                                DbxException
propertiesUpdate(String,List) when
 property groups are being updated via a "snapshot" instead of via a
 "delta". In other words, this endpoint will delete all omitted fields
 from a property group, whereas propertiesUpdate(String,List) will only
 delete fields that are explicitly marked for deletion.path - A unique identifier for the file or folder. Must match
     pattern "/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)" and not be
     null.propertyGroups - The property groups "snapshot" updates to force
     apply. Must contain at least 1 items, not contain a null
     item, and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.InvalidPropertyGroupErrorExceptionDbxExceptionpublic void propertiesRemove(java.lang.String path,
                             java.util.List<java.lang.String> propertyTemplateIds)
                      throws RemovePropertiesErrorException,
                             DbxException
propertiesUpdate(String,List). To update a
 template, see templatesUpdateForUser(String) or templatesUpdateForTeam. To remove a template, see templatesRemoveForUser(String) or templatesRemoveForTeam.path - A unique identifier for the file or folder. Must match
     pattern "/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)" and not be
     null.propertyTemplateIds - A list of identifiers for a template created
     by templatesAddForUser(String,String,List)
     or templatesAddForTeam. Must not contain a null item
     and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.RemovePropertiesErrorExceptionDbxExceptionpublic PropertiesSearchResult propertiesSearch(java.util.List<PropertiesSearchQuery> queries) throws PropertiesSearchErrorException, DbxException
 The templateFilter request parameter will default to TemplateFilter.FILTER_NONE (see propertiesSearch(List,TemplateFilter)). 
queries - Queries to search. Must contain at least 1 items, not
     contain a null item, and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.PropertiesSearchErrorExceptionDbxExceptionpublic PropertiesSearchResult propertiesSearch(java.util.List<PropertiesSearchQuery> queries, TemplateFilter templateFilter) throws PropertiesSearchErrorException, DbxException
queries - Queries to search. Must contain at least 1 items, not
     contain a null item, and not be null.templateFilter - Filter results to contain only properties
     associated with these template IDs. Must not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.PropertiesSearchErrorExceptionDbxExceptionpublic PropertiesSearchResult propertiesSearchContinue(java.lang.String cursor) throws PropertiesSearchContinueErrorException, DbxException
propertiesSearch(List,TemplateFilter), use
 this to paginate through all search results.cursor - The cursor returned by your last call to propertiesSearch(List,TemplateFilter)
     or propertiesSearchContinue(String). Must
     have length of at least 1 and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.PropertiesSearchContinueErrorExceptionDbxExceptionpublic void propertiesUpdate(java.lang.String path,
                             java.util.List<PropertyGroupUpdate> updatePropertyGroups)
                      throws UpdatePropertiesErrorException,
                             DbxException
propertiesOverwrite(String,List) when
 property groups are being updated via a "delta" instead of via a
 "snapshot" . In other words, this endpoint will not delete any omitted
 fields from a property group, whereas propertiesOverwrite(String,List) will
 delete any fields that are omitted from a property group.path - A unique identifier for the file or folder. Must match
     pattern "/(.|[\\r\\n])*|id:.*|(ns:[0-9]+(/.*)?)" and not be
     null.updatePropertyGroups - The property groups "delta" updates to
     apply. Must not contain a null item and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.UpdatePropertiesErrorExceptionDbxExceptionpublic AddTemplateResult templatesAddForUser(java.lang.String name, java.lang.String description, java.util.List<PropertyFieldTemplate> fields) throws ModifyTemplateErrorException, DbxException
propertiesAdd(String,List) to add
 properties to a file. This endpoint can't be called on a team member or
 admin's behalf.name - Display name for the template. Template names can be up to
     256 bytes. Must not be null.description - Description for the template. Template descriptions
     can be up to 1024 bytes. Must not be null.fields - Definitions of the property fields associated with this
     template. There can be up to 32 properties in a single template. Must
     not contain a null item and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.ModifyTemplateErrorExceptionDbxExceptionpublic GetTemplateResult templatesGetForUser(java.lang.String templateId) throws TemplateErrorException, DbxException
templateId - An identifier for template added by route  See templatesAddForUser(String,String,List)
     or templatesAddForTeam. Must have length of at least 1, match
     pattern "(/|ptid:).*", and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.TemplateErrorExceptionDbxExceptionpublic ListTemplateResult templatesListForUser() throws TemplateErrorException, DbxException
templatesGetForUser(String). This endpoint
 can't be called on a team member or admin's behalf.TemplateErrorExceptionDbxExceptionpublic void templatesRemoveForUser(java.lang.String templateId)
                            throws TemplateErrorException,
                                   DbxException
templatesAddForUser(String,String,List).
 All properties associated with the template will also be removed. This
 action cannot be undone.templateId - An identifier for a template created by templatesAddForUser(String,String,List)
     or templatesAddForTeam. Must have length of at least 1, match
     pattern "(/|ptid:).*", and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.TemplateErrorExceptionDbxExceptionpublic UpdateTemplateResult templatesUpdateForUser(java.lang.String templateId) throws ModifyTemplateErrorException, DbxException
templateId - An identifier for template added by  See templatesAddForUser(String,String,List)
     or templatesAddForTeam. Must have length of at least 1, match
     pattern "(/|ptid:).*", and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.ModifyTemplateErrorExceptionDbxExceptionpublic TemplatesUpdateForUserBuilder templatesUpdateForUserBuilder(java.lang.String templateId)
templateId - An identifier for template added by  See templatesAddForUser(String,String,List)
     or templatesAddForTeam. Must have length of at least 1, match
     pattern "(/|ptid:).*", and not be null.java.lang.IllegalArgumentException - If any argument does not meet its
     preconditions.