Package com.axemble.vdoc.sdk.interfaces
Interface IFile
- All Superinterfaces:
IDeletionSupport,IElement,IExternalSupport,ILibraryElement,IProtocolSupport,IResource,ISearchSupport,ISecuritySupport,ITrashSupport,IUriSupport,Serializable
- All Known Implementing Classes:
PortalFile
public interface IFile
extends IResource, IDeletionSupport, IExternalSupport, ISecuritySupport, IUriSupport, IProtocolSupport, ITrashSupport, ILibraryElement
The file within the library system.
- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategories(Collection categories) Associates a collection ofICategoryobjects to the file.voidaddCategory(ICategory category) Associates a category to the file.Retrieve the user who checked out the file.voidcheckIn()Check in a file.voidcheckOut()Check out a file.Gets all the associated categories.Gets the description of the file.Gets the language of the file.Gets the library.Gets the parent folder.booleanCheck if the file has been checked out.booleanMove a file to a folder.voidremoveCategories(Collection categories) Removes the associations between the file and the collection of categories.voidremoveCategory(ICategory category) Removes the association between the file and the specified category.voidsetDefinition(IResourceDefinition definition) Associates the specified definition with the file.voidsetDescription(String description) Sets the description of the file.voidsetLanguage(String language) Sets the language of the file.voidSets the name of the file.voidUndo check out.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IExternalSupport
getExternalClassName, getExternalNativeIdMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ILibraryElement
getNameMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURIMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IResource
addLinkedResource, addLinkedResources, allowEvents, createLinkedResource, deleteLinkedResource, deleteLinkedResources, denyEvents, exists, getCreatedBy, getCreatedDate, getDefinition, getHistory, getLinkedResources, getList, getModifiedBy, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setCreatedBy, setCreatedDate, setList, setModifiedBy, setModifiedDate, setValue, setValueNoEventsMethods inherited from interface com.axemble.vdoc.sdk.supports.ITrashSupport
deleteFromTrash, isInTrash, moveToTrash, restoreFromTrashMethods inherited from interface com.axemble.vdoc.sdk.supports.IUriSupport
getURI
-
Method Details
-
setName
Sets the name of the file.- Parameters:
name- the new name to set.
-
setDescription
Sets the description of the file.- Parameters:
description- the new description to set.
-
getDescription
String getDescription()Gets the description of the file.- Specified by:
getDescriptionin interfaceILibraryElement- Returns:
- a
Stringof the file.
-
setLanguage
Sets the language of the file.- Parameters:
language- the language to set.
-
getLanguage
String getLanguage()Gets the language of the file.- Returns:
- a
Stringof the file.
-
addCategory
Associates a category to the file.- Parameters:
category- theICategoryto add.
-
addCategories
Associates a collection ofICategoryobjects to the file.- Parameters:
categories- a collection ofICategoryobjects.
-
removeCategory
Removes the association between the file and the specified category.- Parameters:
category- theICategoryobject to remove.
-
removeCategories
Removes the associations between the file and the collection of categories.- Parameters:
categories- the collection ofICategoryobjects to remove.
-
getCategories
Collection getCategories()Gets all the associated categories.- Returns:
- a collection of
ICategoryobjects.
-
getParentFolder
IFolder getParentFolder()Gets the parent folder.- Returns:
- a
IFolderobject.
-
getLibrary
ILibrary getLibrary()Gets the library.- Returns:
- a
ILibraryobject.
-
setDefinition
Associates the specified definition with the file.- Parameters:
definition- theIResourceDefinitionobject.
-
checkOut
void checkOut()Check out a file. -
undoCheckOut
void undoCheckOut()Undo check out. -
checkIn
void checkIn()Check in a file. -
checkedOutBy
IUser checkedOutBy()Retrieve the user who checked out the file.- Returns:
- a
IUserobject.
-
isCheckedOut
boolean isCheckedOut()Check if the file has been checked out.- Returns:
- true if the file has been checked out, false otherwise.
-
moveTo
Move a file to a folder.- Parameters:
destFolder- TheIFolderto put the file to.bOverwrite- delete the file.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-