public interface IFile extends IResource, IDeletionSupport, IExternalSupport, ISecuritySupport, IUriSupport, IProtocolSupport, ITrashSupport, ILibraryElement
Modifier and Type | Method and Description |
---|---|
void |
addCategories(Collection categories)
Associates a collection of
ICategory objects to the file. |
void |
addCategory(ICategory category)
Associates a category to the file.
|
IUser |
checkedOutBy()
Retrieve the user who checked out the file.
|
void |
checkIn()
Check in a file.
|
void |
checkOut()
Check out a file.
|
Collection |
getCategories()
Gets all the associated categories.
|
String |
getDescription()
Gets the description of the file.
|
String |
getLanguage()
Gets the language of the file.
|
ILibrary |
getLibrary()
Gets the library.
|
IFolder |
getParentFolder()
Gets the parent folder.
|
boolean |
isCheckedOut()
Check if the file has been checked out.
|
boolean |
moveTo(IFolder destFolder,
boolean bOverwrite)
Move a file to a folder.
|
void |
removeCategories(Collection categories)
Removes the associations between the file and the collection of categories.
|
void |
removeCategory(ICategory category)
Removes the association between the file and the specified category.
|
void |
setDefinition(IResourceDefinition definition)
Associates the specified definition with the file.
|
void |
setDescription(String description)
Sets the description of the file.
|
void |
setLanguage(String language)
Sets the language of the file.
|
void |
setName(String name)
Sets the name of the file.
|
void |
undoCheckOut()
Undo check out.
|
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, setValueNoEvents
delete
getProtocolURI, getProtocolURI
getExternalClassName, getExternalNativeId
getURI
deleteFromTrash, isInTrash, moveToTrash, restoreFromTrash
getName
void setName(String name)
name
- the new name to set.void setDescription(String description)
description
- the new description to set.String getDescription()
getDescription
in interface ILibraryElement
String
of the file.void setLanguage(String language)
language
- the language to set.void addCategory(ICategory category)
category
- the ICategory
to add.void addCategories(Collection categories)
ICategory
objects to the file.categories
- a collection of ICategory
objects.void removeCategory(ICategory category)
category
- the ICategory
object to remove.void removeCategories(Collection categories)
categories
- the collection of ICategory
objects to remove.Collection getCategories()
ICategory
objects.void setDefinition(IResourceDefinition definition)
definition
- the IResourceDefinition
object.void checkOut()
void undoCheckOut()
void checkIn()
IUser checkedOutBy()
IUser
object.boolean isCheckedOut()
Copyright © 2021 Visiativ Software. All rights reserved.