public class FolderData extends Object
Constructor and Description |
---|
FolderData(String id,
String context,
String path,
long folderCount,
long fileCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContext() |
long |
getFileCount() |
long |
getFolderCount() |
String |
getId() |
int |
getLevel() |
String |
getName() |
String |
getParentPath()
Get the path that the parent would have.
|
String |
getPath() |
int |
hashCode() |
String |
toString() |
public FolderData(String id, String context, String path, long folderCount, long fileCount)
id
- the unique ID of the folder. The value must be unique but is dependent on the format used by the system in testcontext
- an arbitrary context in which the folder path is valid. The format is determined by the target test system.path
- the folder path with the given context. The context and path combination must be uniquefolderCount
- the number of subfolders in the folderfileCount
- the number of files in the folderIllegalArgumentException
- if the values are nullpublic String getId()
public String getContext()
public String getPath()
public int getLevel()
public String getName()
FilenameUtils.getName(String)
public String getParentPath()
name
of this folderpublic long getFolderCount()
public long getFileCount()
Copyright © 2005–2018 Alfresco Software. All rights reserved.