Package com.axemble.vdoc.sdk.impl
Class PortalFolder
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.PortalElement
com.axemble.vdoc.sdk.impl.PortalFolder
- All Implemented Interfaces:
IElement
,IFolder
,ILibraryElement
,IDeletionSupport
,IExternalSupport
,IProtocolSupport
,ISearchSupport
,ISecuritySupport
,ITrashSupport
,IUriSupport
,Serializable
- Author:
- vlygeros
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalElement
path, storageKey
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
ModifierConstructorDescriptionprotected
PortalFolder
(IModule module, com.axemble.webdrive.om.FolderNode folder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds aIFile
object.void
Deletes theIElement
object.void
Delete the element from the trash.Gets the creator of the folder.Gets the created date.Gets the description of the folder.Gets a childIFolder
object by its name.getFolders
(IContext context) Gets the child foldersGets the library.Gets the last user who modified the folder.Gets the modified date.getName()
Gets the name of the folder.Gets the native object underneath.Gets the parent folder.getURI()
Gets the URI of the object supporting this interfaceboolean
Check if the element has been sent to the trash.void
Move the element to the trash.void
Restore the element from the trash.void
setCreatedBy
(IUser user) Sets the creator of the folder.void
setDescription
(String description) Sets the description of the folder.void
setModifiedBy
(IUser user) Sets last user who modified the folder.void
setModifiedDate
(Date date) Sets the modified date.void
Sets the name of the folder.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalElement
equals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, save, setId
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Field Details
-
folder
protected com.axemble.webdrive.om.FolderNode folder
-
-
Constructor Details
-
PortalFolder
-
-
Method Details
-
getNativeObject
Description copied from interface:IElement
Gets the native object underneath.- Specified by:
getNativeObject
in interfaceIElement
- Returns:
- an object.
-
getExternalClassName
- Specified by:
getExternalClassName
in interfaceIExternalSupport
-
getExternalNativeId
- Specified by:
getExternalNativeId
in interfaceIExternalSupport
-
getName
Description copied from interface:IFolder
Gets the name of the folder.- Specified by:
getName
in interfaceIFolder
- Specified by:
getName
in interfaceILibraryElement
- Returns:
- a String object.
-
setName
Description copied from interface:IFolder
Sets the name of the folder. -
getURI
Description copied from interface:IUriSupport
Gets the URI of the object supporting this interface- Specified by:
getURI
in interfaceIUriSupport
- Returns:
- A String object.
-
setDescription
Description copied from interface:IFolder
Sets the description of the folder.- Specified by:
setDescription
in interfaceIFolder
- Parameters:
description
- the new description to set.
-
getDescription
Description copied from interface:IFolder
Gets the description of the folder.- Specified by:
getDescription
in interfaceIFolder
- Specified by:
getDescription
in interfaceILibraryElement
- Returns:
- a String of the folder.
-
getCreatedDate
Description copied from interface:IFolder
Gets the created date.- Specified by:
getCreatedDate
in interfaceIFolder
- Returns:
- a
Date
object.
-
getModifiedDate
Description copied from interface:IFolder
Gets the modified date.- Specified by:
getModifiedDate
in interfaceIFolder
- Returns:
- a
Date
object.
-
setModifiedDate
Description copied from interface:IFolder
Sets the modified date.- Specified by:
setModifiedDate
in interfaceIFolder
- Parameters:
date
- TheDate
to set.
-
setCreatedBy
Description copied from interface:IFolder
Sets the creator of the folder.- Specified by:
setCreatedBy
in interfaceIFolder
- Parameters:
user
- The user to set as the creator of the folder.
-
getCreatedBy
Description copied from interface:IFolder
Gets the creator of the folder.- Specified by:
getCreatedBy
in interfaceIFolder
- Returns:
- a
IUser
object.
-
setModifiedBy
Description copied from interface:IFolder
Sets last user who modified the folder.- Specified by:
setModifiedBy
in interfaceIFolder
- Parameters:
user
- The lastIUser
who modified the folder.
-
getModifiedBy
Description copied from interface:IFolder
Gets the last user who modified the folder.- Specified by:
getModifiedBy
in interfaceIFolder
- Returns:
- a
IUser
object.
-
addFile
Description copied from interface:IFolder
Adds aIFile
object. -
delete
Description copied from interface:IDeletionSupport
Deletes theIElement
object.- Specified by:
delete
in interfaceIDeletionSupport
- Parameters:
context
- The Execution context.
-
getLibrary
Description copied from interface:IFolder
Gets the library.- Specified by:
getLibrary
in interfaceIFolder
- Returns:
- A
ILibrary
object.
-
getFolders
Description copied from interface:IFolder
Gets the child folders- Specified by:
getFolders
in interfaceIFolder
- Parameters:
context
- The execution context.- Returns:
- A collection of
IFolder
objects.
-
getFolder
Description copied from interface:IFolder
Gets a childIFolder
object by its name. -
getParentFolder
Description copied from interface:IFolder
Gets the parent folder.- Specified by:
getParentFolder
in interfaceIFolder
- Returns:
- A
IFolder
object.
-
isInTrash
public boolean isInTrash()Description copied from interface:ITrashSupport
Check if the element has been sent to the trash.- Specified by:
isInTrash
in interfaceITrashSupport
- Returns:
- true if yes,
invalid @link
{@link false
-
deleteFromTrash
public void deleteFromTrash()Description copied from interface:ITrashSupport
Delete the element from the trash.- Specified by:
deleteFromTrash
in interfaceITrashSupport
-
restoreFromTrash
public void restoreFromTrash()Description copied from interface:ITrashSupport
Restore the element from the trash.- Specified by:
restoreFromTrash
in interfaceITrashSupport
-
moveToTrash
public void moveToTrash()Description copied from interface:ITrashSupport
Move the element to the trash.- Specified by:
moveToTrash
in interfaceITrashSupport
-