public class VirtualFolderContainer
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable
Title: FileCatalyst Direct Server API
Description: Container class that holds virtual folder data. Allows viewing of Virtual Folders by API caller without exposing the inner VirtualFolder classes.
Copyright: Copyright (c) 2013
Company: Unlimi-Tech Software Inc.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UNNAMED_VFOLDER |
| Constructor and Description |
|---|
VirtualFolderContainer(java.lang.String name,
java.lang.String label,
java.lang.String path,
java.lang.String description,
unlimited.fc.rest.server.type.VirtualPathTargetType type)
Constructor used by test classes, allows insertion of database key for path.
|
VirtualFolderContainer(java.lang.String label,
java.lang.String path,
java.lang.String description,
unlimited.fc.rest.server.type.VirtualPathTargetType type)
Default constructor used by customer wanting to add a new virtual folder.
|
| Modifier and Type | Method and Description |
|---|---|
VirtualFolderContainer |
clone()
Close the VirtualFolderContainer
|
int |
compareTo(java.lang.Object o)
Custom compare to method for this object
|
boolean |
equals(java.lang.Object obj)
Custom equals operation for this object
|
java.lang.String |
getDescription()
Returns the description of the virtual folder
|
java.lang.String |
getLabel()
Get the VirtualFolder label.
|
java.lang.String |
getName()
Returns the PK of the VirtualFolder in the database.
|
java.lang.String |
getPath()
Get the file system path where the virtual folder resides.
|
unlimited.fc.rest.server.type.VirtualPathTargetType |
getType() |
unlimited.fc.server.api.LinkState.UsageState |
getUsage()
Get the state of the VirtualFolder usage.
|
boolean |
isTemp()
Get Wheither Or Not This Virtual File Is Temporary
|
boolean |
isUnnamed()
Returns true if the virtual folder is unnamed.
|
boolean |
isUserDeletable()
return true if this is deletable.
|
void |
setDescription(java.lang.String description)
Set the description for the virtual folder.
|
void |
setLabel(java.lang.String label)
Set the VirtualFolder label to another value.
|
void |
setPath(java.lang.String path)
Sets the path where the virtual folder resides.
|
void |
setTemp(boolean temp)
Set Wheither Or Not This Virtual File Is Temporary
|
void |
setType(unlimited.fc.rest.server.type.VirtualPathTargetType type) |
void |
setUserDeletable(boolean deletable)
set true if this is deletable.
|
java.lang.String |
toString()
Write out VirtualFolderContainer object to string.
|
public static final java.lang.String UNNAMED_VFOLDER
public VirtualFolderContainer(java.lang.String label,
java.lang.String path,
java.lang.String description,
unlimited.fc.rest.server.type.VirtualPathTargetType type)
label - logical path presented as a sub-directory in the user home dir when they are granted access (ie: storage).path - physical path on the machine (ie: C:\foo\bar\)description - Comment on the virtualfolder to give context to the adminpublic VirtualFolderContainer(java.lang.String name,
java.lang.String label,
java.lang.String path,
java.lang.String description,
unlimited.fc.rest.server.type.VirtualPathTargetType type)
name - label - path - description - public VirtualFolderContainer clone()
clone in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description to setpublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - the label to setpublic java.lang.String getPath()
public boolean isTemp()
public void setTemp(boolean temp)
temp - the temp to setpublic boolean isUserDeletable()
public void setUserDeletable(boolean deletable)
deletable - booleanpublic void setPath(java.lang.String path)
path - the path to setpublic unlimited.fc.rest.server.type.VirtualPathTargetType getType()
public void setType(unlimited.fc.rest.server.type.VirtualPathTargetType type)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic unlimited.fc.server.api.LinkState.UsageState getUsage()
public boolean isUnnamed()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableCopyright © 2015 Unlimi-Tech Sofware Inc. All Rights Reserved.