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 SummaryModifier 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.IDeletionSupportdeleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElementgetId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IExternalSupportgetExternalClassName, getExternalNativeIdMethods inherited from interface com.axemble.vdoc.sdk.interfaces.ILibraryElementgetNameMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupportgetProtocolURI, getProtocolURIMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IResourceaddLinkedResource, 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.ITrashSupportdeleteFromTrash, isInTrash, moveToTrash, restoreFromTrashMethods inherited from interface com.axemble.vdoc.sdk.supports.IUriSupportgetURI
- 
Method Details- 
setNameSets the name of the file.- Parameters:
- name- the new name to set.
 
- 
setDescriptionSets the description of the file.- Parameters:
- description- the new description to set.
 
- 
getDescriptionString getDescription()Gets the description of the file.- Specified by:
- getDescriptionin interface- ILibraryElement
- Returns:
- a Stringof the file.
 
- 
setLanguageSets the language of the file.- Parameters:
- language- the language to set.
 
- 
getLanguageString getLanguage()Gets the language of the file.- Returns:
- a Stringof the file.
 
- 
addCategoryAssociates a category to the file.- Parameters:
- category- the- ICategoryto add.
 
- 
addCategoriesAssociates a collection ofICategoryobjects to the file.- Parameters:
- categories- a collection of- ICategoryobjects.
 
- 
removeCategoryRemoves the association between the file and the specified category.- Parameters:
- category- the- ICategoryobject to remove.
 
- 
removeCategoriesRemoves the associations between the file and the collection of categories.- Parameters:
- categories- the collection of- ICategoryobjects to remove.
 
- 
getCategoriesCollection getCategories()Gets all the associated categories.- Returns:
- a collection of ICategoryobjects.
 
- 
getParentFolderIFolder getParentFolder()Gets the parent folder.- Returns:
- a IFolderobject.
 
- 
getLibraryILibrary getLibrary()Gets the library.- Returns:
- a ILibraryobject.
 
- 
setDefinitionAssociates the specified definition with the file.- Parameters:
- definition- the- IResourceDefinitionobject.
 
- 
checkOutvoid checkOut()Check out a file.
- 
undoCheckOutvoid undoCheckOut()Undo check out.
- 
checkInvoid checkIn()Check in a file.
- 
checkedOutByIUser checkedOutBy()Retrieve the user who checked out the file.- Returns:
- a IUserobject.
 
- 
isCheckedOutboolean isCheckedOut()Check if the file has been checked out.- Returns:
- true if the file has been checked out, false otherwise.
 
- 
moveToMove a file to a folder.- Parameters:
- destFolder- The- IFolderto put the file to.
- bOverwrite- delete the file.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
 
-