public class DbxTeamFilePropertiesRequests
extends java.lang.Object
Constructor and Description |
---|
DbxTeamFilePropertiesRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
AddTemplateResult |
templatesAddForTeam(java.lang.String name,
java.lang.String description,
java.util.List<PropertyFieldTemplate> fields)
Add a template associated with a team.
|
GetTemplateResult |
templatesGetForTeam(java.lang.String templateId)
Get the schema for a specified template.
|
ListTemplateResult |
templatesListForTeam()
Get the template identifiers for a team.
|
void |
templatesRemoveForTeam(java.lang.String templateId)
Permanently removes the specified template created from
DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List) . |
UpdateTemplateResult |
templatesUpdateForTeam(java.lang.String templateId)
Update a template associated with a team.
|
TemplatesUpdateForTeamBuilder |
templatesUpdateForTeamBuilder(java.lang.String templateId)
Update a template associated with a team.
|
public DbxTeamFilePropertiesRequests(DbxRawClientV2 client)
public AddTemplateResult templatesAddForTeam(java.lang.String name, java.lang.String description, java.util.List<PropertyFieldTemplate> fields) throws ModifyTemplateErrorException, DbxException
DbxUserFilePropertiesRequests.propertiesAdd(String,List)
to add
properties to a file or folder.
Note: this endpoint will create team-owned templates.
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.ModifyTemplateErrorException
DbxException
public GetTemplateResult templatesGetForTeam(java.lang.String templateId) throws TemplateErrorException, DbxException
templateId
- An identifier for template added by route See DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
or templatesAddForTeam(String,String,List)
.
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.TemplateErrorException
DbxException
public ListTemplateResult templatesListForTeam() throws TemplateErrorException, DbxException
templatesGetForTeam(String)
.TemplateErrorException
DbxException
public void templatesRemoveForTeam(java.lang.String templateId) throws TemplateErrorException, DbxException
DbxUserFilePropertiesRequests.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 DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
or templatesAddForTeam(String,String,List)
.
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.TemplateErrorException
DbxException
public UpdateTemplateResult templatesUpdateForTeam(java.lang.String templateId) throws ModifyTemplateErrorException, DbxException
templateId
- An identifier for template added by See DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
or templatesAddForTeam(String,String,List)
.
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.ModifyTemplateErrorException
DbxException
public TemplatesUpdateForTeamBuilder templatesUpdateForTeamBuilder(java.lang.String templateId)
templateId
- An identifier for template added by See DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
or templatesAddForTeam(String,String,List)
.
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.