Package com.axemble.vdoc.sdk.impl
Class PortalFile
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.PortalElement
com.axemble.vdoc.sdk.impl.PortalFile
- All Implemented Interfaces:
- IElement,- IFile,- ILibraryElement,- IResource,- IDeletionSupport,- IExternalSupport,- IProtocolSupport,- ISearchSupport,- ISecuritySupport,- ITrashSupport,- IUriSupport,- Serializable
- Author:
- vlygeros
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected com.axemble.webdrive.om.DocumentNodeprotected IResourceHistoryFields inherited from class com.axemble.vdoc.sdk.impl.PortalElementpath, storageKeyFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElementmodule
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCategories(Collection categories) Associates a collection ofICategoryobjects to the file.voidaddCategory(ICategory category) Associates a category to the file.booleanaddLinkedResource(ILinkedResource linkedResource) Allows to add a linked resource.booleanaddLinkedResources(Collection linkedResources) Allows to add linked resources.voidAllows events to be thrown.Retrieve the user who checked out the file.voidcheckIn()Check in a file.voidcheckOut()Check out a file.createLinkedResource(String propertyName) Creates a linked resource within a property.voidDeletes theIElementobject.voidDelete the element from the trash.voiddeleteLinkedResource(ILinkedResource linkedResource) Allows to remove a linked resource.voiddeleteLinkedResources(Collection linkedResources) Allows to remove a collection of linked resources.voidPrevents from throwing events.booleanChecks if a property exists.Gets all the associated categories.Gets the creator of the resource.Gets the created date.Gets the definition of the resourceGets the description of the file.Gets the history of the resourceGets the language of the file.Gets the library.getLinkedResources(String propertyName) Retrieves all the linked resources of a property.Gets the available values of a list property.Gets the last user who modified the resource.Gets the modified date.getName()Gets the name of a resource.Gets the native object underneath.Gets the parent folder.getURI()Gets the URI of the object supporting this interfaceGets the value of a property.booleanCheck if the file has been checked out.booleanCheck if the element has been sent to the trash.booleanMove a file to a folder.voidMove the element to the trash.voidrefresh()Refresh all children values cachevoidRefresh children cache for given propertyvoidremoveCategories(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.voidRestore the element from the trash.booleansave()Saves the resource.booleanSaves or updates the element.booleanSaves a specified property.voidsetCreatedBy(IUser user) Sets the creator of the resource.voidsetCreatedDate(Date date) Sets the created date.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.voidsetList(String propertyName, Collection value) Sets the available values for a list property.voidsetModifiedBy(IUser user) Sets last user who modified the resource.voidsetModifiedDate(Date date) Sets the modified date.voidSets the name of the file.voidSets a value to a propertyvoidsetValueNoEvents(String propertyName, Object value) Sets a value to a property without throwing any event.voidUndo check out.Methods inherited from class com.axemble.vdoc.sdk.impl.PortalElementequals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, setIdMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElementgetModuleMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupportgetProtocolURI, getProtocolURI
- 
Field Details- 
documentprotected com.axemble.webdrive.om.DocumentNode document
- 
history
 
- 
- 
Constructor Details- 
PortalFile
 
- 
- 
Method Details- 
getNativeObjectDescription copied from interface:IElementGets the native object underneath.- Specified by:
- getNativeObjectin interface- IElement
- Returns:
- an object.
 
- 
getExternalClassName- Specified by:
- getExternalClassNamein interface- IExternalSupport
 
- 
getExternalNativeId- Specified by:
- getExternalNativeIdin interface- IExternalSupport
 
- 
setNameDescription copied from interface:IFileSets the name of the file.
- 
getURIDescription copied from interface:IUriSupportGets the URI of the object supporting this interface- Specified by:
- getURIin interface- IUriSupport
- Returns:
- A String object.
 
- 
getNameDescription copied from interface:IResourceGets the name of a resource.- Specified by:
- getNamein interface- ILibraryElement
- Specified by:
- getNamein interface- IResource
- Returns:
- a string object.
 
- 
setDescriptionDescription copied from interface:IFileSets the description of the file.- Specified by:
- setDescriptionin interface- IFile
- Parameters:
- description- the new description to set.
 
- 
getDescriptionDescription copied from interface:IFileGets the description of the file.- Specified by:
- getDescriptionin interface- IFile
- Specified by:
- getDescriptionin interface- ILibraryElement
- Returns:
- a Stringof the file.
 
- 
getCreatedDateDescription copied from interface:IResourceGets the created date.- Specified by:
- getCreatedDatein interface- IResource
- Returns:
- a Dateobject.
 
- 
setCreatedDateDescription copied from interface:IResourceSets the created date.- Specified by:
- setCreatedDatein interface- IResource
- Parameters:
- date- The- Dateto set.
 
- 
getModifiedDateDescription copied from interface:IResourceGets the modified date.- Specified by:
- getModifiedDatein interface- IResource
- Returns:
- a Dateobject.
 
- 
setModifiedDateDescription copied from interface:IResourceSets the modified date.- Specified by:
- setModifiedDatein interface- IResource
- Parameters:
- date- The- Dateto set.
 
- 
setCreatedByDescription copied from interface:IResourceSets the creator of the resource. Can only be set if the resource has not been created yet- Specified by:
- setCreatedByin interface- IResource
- Parameters:
- user- The creator- IUserof the resource.
 
- 
getCreatedByDescription copied from interface:IResourceGets the creator of the resource.- Specified by:
- getCreatedByin interface- IResource
- Returns:
- a IUserobject.
 
- 
setModifiedByDescription copied from interface:IResourceSets last user who modified the resource.- Specified by:
- setModifiedByin interface- IResource
- Parameters:
- user- The last- IUserwho modified the resource.
 
- 
getModifiedByDescription copied from interface:IResourceGets the last user who modified the resource.- Specified by:
- getModifiedByin interface- IResource
- Returns:
- a IUserobject.
 
- 
setLanguageDescription copied from interface:IFileSets the language of the file.- Specified by:
- setLanguagein interface- IFile
- Parameters:
- language- the language to set.
 
- 
getLanguageDescription copied from interface:IFileGets the language of the file.- Specified by:
- getLanguagein interface- IFile
- Returns:
- a Stringof the file.
 
- 
addCategoryDescription copied from interface:IFileAssociates a category to the file.- Specified by:
- addCategoryin interface- IFile
- Parameters:
- category- the- ICategoryto add.
 
- 
addCategoriesDescription copied from interface:IFileAssociates a collection ofICategoryobjects to the file.- Specified by:
- addCategoriesin interface- IFile
- Parameters:
- categories- a collection of- ICategoryobjects.
 
- 
existsDescription copied from interface:IResourceChecks if a property exists.
- 
setValueNoEventsDescription copied from interface:IResourceSets a value to a property without throwing any event.- Specified by:
- setValueNoEventsin interface- IResource
- Parameters:
- propertyName- The system name of the property.
- value- The value object to set.
 
- 
setValueDescription copied from interface:IResourceSets a value to a property
- 
getValueDescription copied from interface:IResourceGets the value of a property.
- 
getListDescription copied from interface:IResourceGets the available values of a list property.- Specified by:
- getListin interface- IResource
- Parameters:
- propertyName- The system name of the property.
- Returns:
- A java.util.Collection of IOptionList.IOption.
 
- 
setListDescription copied from interface:IResourceSets the available values for a list property.- Specified by:
- setListin interface- IResource
- Parameters:
- propertyName- The system name of the property.
- value- A java.util.Collection of- IOptionList.IOptionobjects..
 
- 
getLibraryDescription copied from interface:IFileGets the library.- Specified by:
- getLibraryin interface- IFile
- Returns:
- a ILibraryobject.
 
- 
getParentFolderDescription copied from interface:IFileGets the parent folder.- Specified by:
- getParentFolderin interface- IFile
- Returns:
- a IFolderobject.
 
- 
getHistoryDescription copied from interface:IResourceGets the history of the resource- Specified by:
- getHistoryin interface- IResource
- Returns:
- a IResourceHistoryobject.
 
- 
getDefinitionDescription copied from interface:IResourceGets the definition of the resource- Specified by:
- getDefinitionin interface- IResource
- Returns:
- A IResourceDefinitionobject.
 
- 
setDefinitionDescription copied from interface:IFileAssociates the specified definition with the file.- Specified by:
- setDefinitionin interface- IFile
- Parameters:
- definition- the- IResourceDefinitionobject.
 
- 
createLinkedResourceDescription copied from interface:IResourceCreates a linked resource within a property.- Specified by:
- createLinkedResourcein interface- IResource
- Parameters:
- propertyName- The system name of the property.
- Returns:
- a ILinkedResourceobject.
 
- 
addLinkedResourceDescription copied from interface:IResourceAllows to add a linked resource.- Specified by:
- addLinkedResourcein interface- IResource
- Parameters:
- linkedResource- The- ILinkedResourceto add.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
addLinkedResourcesDescription copied from interface:IResourceAllows to add linked resources.- Specified by:
- addLinkedResourcesin interface- IResource
- Parameters:
- linkedResources- The collection of- ILinkedResourceobjects to add.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
getLinkedResourcesDescription copied from interface:IResourceRetrieves all the linked resources of a property.- Specified by:
- getLinkedResourcesin interface- IResource
- Parameters:
- propertyName- The system name of the property.
- Returns:
- A java.util.Collection of ILinkedResourceobjects.
 
- 
saveDescription copied from interface:IElementSaves or updates the element.- Specified by:
- savein interface- IElement
- Overrides:
- savein class- PortalElement
- Parameters:
- context- The Execution context.
- Returns:
- return true if succeeded, false otherwise.
 
- 
savepublic boolean save()Description copied from interface:IResourceSaves the resource.
- 
saveDescription copied from interface:IResourceSaves a specified property.
- 
deleteDescription copied from interface:IDeletionSupportDeletes theIElementobject.- Specified by:
- deletein interface- IDeletionSupport
- Parameters:
- context- The Execution context.
 
- 
allowEventspublic void allowEvents()Description copied from interface:IResourceAllows events to be thrown.- Specified by:
- allowEventsin interface- IResource
 
- 
denyEventspublic void denyEvents()Description copied from interface:IResourcePrevents from throwing events.- Specified by:
- denyEventsin interface- IResource
 
- 
removeCategoriesDescription copied from interface:IFileRemoves the associations between the file and the collection of categories.- Specified by:
- removeCategoriesin interface- IFile
- Parameters:
- categories- the collection of- ICategoryobjects to remove.
 
- 
removeCategoryDescription copied from interface:IFileRemoves the association between the file and the specified category.- Specified by:
- removeCategoryin interface- IFile
- Parameters:
- category- the- ICategoryobject to remove.
 
- 
getCategoriesDescription copied from interface:IFileGets all the associated categories.- Specified by:
- getCategoriesin interface- IFile
- Returns:
- a collection of ICategoryobjects.
 
- 
deleteLinkedResourceDescription copied from interface:IResourceAllows to remove a linked resource.- Specified by:
- deleteLinkedResourcein interface- IResource
- Parameters:
- linkedResource- The- ILinkedResourceto remove.
 
- 
deleteLinkedResourcesDescription copied from interface:IResourceAllows to remove a collection of linked resources.- Specified by:
- deleteLinkedResourcesin interface- IResource
- Parameters:
- linkedResources- The collection of- ILinkedResourceobjects.
 
- 
checkInpublic void checkIn()Description copied from interface:IFileCheck in a file.
- 
checkOutpublic void checkOut()Description copied from interface:IFileCheck out a file.
- 
undoCheckOutpublic void undoCheckOut()Description copied from interface:IFileUndo check out.- Specified by:
- undoCheckOutin interface- IFile
 
- 
checkedOutByDescription copied from interface:IFileRetrieve the user who checked out the file.- Specified by:
- checkedOutByin interface- IFile
- Returns:
- a IUserobject.
 
- 
isCheckedOutpublic boolean isCheckedOut()Description copied from interface:IFileCheck if the file has been checked out.- Specified by:
- isCheckedOutin interface- IFile
- Returns:
- true if the file has been checked out, false otherwise.
 
- 
moveToDescription copied from interface:IFileMove a file to a folder.
- 
refreshpublic void refresh()Description copied from interface:IResourceRefresh all children values cache
- 
refreshDescription copied from interface:IResourceRefresh children cache for given property
- 
getText
- 
isInTrashpublic boolean isInTrash()Description copied from interface:ITrashSupportCheck if the element has been sent to the trash.- Specified by:
- isInTrashin interface- ITrashSupport
- Returns:
- true if yes, 
} otherwise.invalid @link{@link false
 
- 
restoreFromTrashpublic void restoreFromTrash()Description copied from interface:ITrashSupportRestore the element from the trash.- Specified by:
- restoreFromTrashin interface- ITrashSupport
 
- 
moveToTrashpublic void moveToTrash()Description copied from interface:ITrashSupportMove the element to the trash.- Specified by:
- moveToTrashin interface- ITrashSupport
 
- 
deleteFromTrashpublic void deleteFromTrash()Description copied from interface:ITrashSupportDelete the element from the trash.- Specified by:
- deleteFromTrashin interface- ITrashSupport
 
 
-