Package com.smartsheet.api.models
Class Folder
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<java.lang.Long>
-
- com.smartsheet.api.models.Folder
-
- Direct Known Subclasses:
Workspace
public class Folder extends NamedModel<java.lang.Long>
Represents a folder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFolder.CreateFolderBuilderA convenience class for setting up a folder with the appropriate fields for updating the folder.static classFolder.UpdateFolderBuilderA convenience class for setting up a folder with the appropriate fields for updating the folder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.DategetCreatedAt()Gets the folder creation date.java.lang.BooleangetFavorite()Deprecated, for removal: This API element is subject to removal in a future version.As of API 3.2.2.java.util.List<Folder>getFolders()Gets the folders contained in this folder.java.util.DategetModifiedAt()Gets the folder last modified date.java.lang.StringgetPermalink()Gets the Direct URL to Folder.java.util.List<Report>getReports()Gets the reports.java.util.List<Sheet>getSheets()Gets the sheets in the folder.java.util.List<Sight>getSights()Get the sights contained in this folderSourcegetSource()Gets the source.java.util.List<Template>getTemplates()Gets the templates contained in this folder.FoldersetCreatedAt(java.util.Date createdAt)Sets the folder creation date.FoldersetFavorite(java.lang.Boolean favorite)Deprecated, for removal: This API element is subject to removal in a future version.As of API 3.2.2.FoldersetFolders(java.util.List<Folder> folders)Sets the folders contained in this folder.FoldersetModifiedAt(java.util.Date modifiedAt)Sets the folder last modified date.FoldersetName(java.lang.String name)Provide an 'override' of setName (returns Folder not NamedModel)FoldersetPermalink(java.lang.String permalink)Sets the Direct URL to Folder.FoldersetReports(java.util.List<Report> reports)Sets the reports.FoldersetSheets(java.util.List<Sheet> sheets)Sets the sheets contained in the folder.FoldersetSights(java.util.List<Sight> sights)Sets the sights contained in this folder.FoldersetSource(Source source)Sets the source.FoldersetTemplates(java.util.List<Template> templates)Sets the templates contained in this folder.-
Methods inherited from class com.smartsheet.api.models.NamedModel
getName
-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
setName
public Folder setName(java.lang.String name)
Provide an 'override' of setName (returns Folder not NamedModel)- Overrides:
setNamein classNamedModel<java.lang.Long>- Parameters:
name- the new name
-
getPermalink
public java.lang.String getPermalink()
Gets the Direct URL to Folder.- Returns:
- the sheets
-
setPermalink
public Folder setPermalink(java.lang.String permalink)
Sets the Direct URL to Folder.- Parameters:
permalink- the new sheets
-
getFavorite
@Deprecated(since="3.2.2", forRemoval=true) public java.lang.Boolean getFavorite()Deprecated, for removal: This API element is subject to removal in a future version.As of API 3.2.2. Please use the isFavorite method in FavoritesResources instead.Gets the favorite boolean value of folder in Home.- Returns:
- the sheets
-
setFavorite
@Deprecated(since="3.2.2", forRemoval=true) public Folder setFavorite(java.lang.Boolean favorite)Deprecated, for removal: This API element is subject to removal in a future version.As of API 3.2.2. Please use the isFavorite method in FavoritesResources instead.Sets the favorite boolean value of folder in Home.- Parameters:
favorite- the new sheets
-
getSheets
public java.util.List<Sheet> getSheets()
Gets the sheets in the folder.- Returns:
- the sheets
-
setSheets
public Folder setSheets(java.util.List<Sheet> sheets)
Sets the sheets contained in the folder.- Parameters:
sheets- the new sheets
-
getFolders
public java.util.List<Folder> getFolders()
Gets the folders contained in this folder.- Returns:
- the folders
-
setFolders
public Folder setFolders(java.util.List<Folder> folders)
Sets the folders contained in this folder.- Parameters:
folders- the new folders
-
getReports
public java.util.List<Report> getReports()
Gets the reports.- Returns:
- the reports
-
setReports
public Folder setReports(java.util.List<Report> reports)
Sets the reports.- Parameters:
reports- the new reports
-
getTemplates
public java.util.List<Template> getTemplates()
Gets the templates contained in this folder.- Returns:
- the templates
-
setTemplates
public Folder setTemplates(java.util.List<Template> templates)
Sets the templates contained in this folder.- Parameters:
templates- the new templates
-
getSights
public java.util.List<Sight> getSights()
Get the sights contained in this folder- Returns:
- the sights
-
setSights
public Folder setSights(java.util.List<Sight> sights)
Sets the sights contained in this folder.
-
getSource
public Source getSource()
Gets the source.- Returns:
- the source
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the folder creation date.- Returns:
- the creation date
-
setCreatedAt
public Folder setCreatedAt(java.util.Date createdAt)
Sets the folder creation date.- Parameters:
createdAt- the creation date
-
getModifiedAt
public java.util.Date getModifiedAt()
Gets the folder last modified date.- Returns:
- the last modified date
-
setModifiedAt
public Folder setModifiedAt(java.util.Date modifiedAt)
Sets the folder last modified date.- Parameters:
modifiedAt- the last modified date
-
-