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 Summary
FieldsModifier and TypeFieldDescriptionprotected com.axemble.webdrive.om.DocumentNodeprotected IResourceHistoryFields inherited from class com.axemble.vdoc.sdk.impl.PortalElement
path, storageKeyFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PortalElement
equals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, setIdMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModuleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Field Details
-
document
protected com.axemble.webdrive.om.DocumentNode document -
history
-
-
Constructor Details
-
PortalFile
-
-
Method Details
-
getNativeObject
Description copied from interface:IElementGets the native object underneath.- Specified by:
getNativeObjectin interfaceIElement- Returns:
- an object.
-
getExternalClassName
- Specified by:
getExternalClassNamein interfaceIExternalSupport
-
getExternalNativeId
- Specified by:
getExternalNativeIdin interfaceIExternalSupport
-
setName
Description copied from interface:IFileSets the name of the file. -
getURI
Description copied from interface:IUriSupportGets the URI of the object supporting this interface- Specified by:
getURIin interfaceIUriSupport- Returns:
- A String object.
-
getName
Description copied from interface:IResourceGets the name of a resource.- Specified by:
getNamein interfaceILibraryElement- Specified by:
getNamein interfaceIResource- Returns:
- a string object.
-
setDescription
Description copied from interface:IFileSets the description of the file.- Specified by:
setDescriptionin interfaceIFile- Parameters:
description- the new description to set.
-
getDescription
Description copied from interface:IFileGets the description of the file.- Specified by:
getDescriptionin interfaceIFile- Specified by:
getDescriptionin interfaceILibraryElement- Returns:
- a
Stringof the file.
-
getCreatedDate
Description copied from interface:IResourceGets the created date.- Specified by:
getCreatedDatein interfaceIResource- Returns:
- a
Dateobject.
-
setCreatedDate
Description copied from interface:IResourceSets the created date.- Specified by:
setCreatedDatein interfaceIResource- Parameters:
date- TheDateto set.
-
getModifiedDate
Description copied from interface:IResourceGets the modified date.- Specified by:
getModifiedDatein interfaceIResource- Returns:
- a
Dateobject.
-
setModifiedDate
Description copied from interface:IResourceSets the modified date.- Specified by:
setModifiedDatein interfaceIResource- Parameters:
date- TheDateto set.
-
setCreatedBy
Description copied from interface:IResourceSets the creator of the resource. Can only be set if the resource has not been created yet- Specified by:
setCreatedByin interfaceIResource- Parameters:
user- The creatorIUserof the resource.
-
getCreatedBy
Description copied from interface:IResourceGets the creator of the resource.- Specified by:
getCreatedByin interfaceIResource- Returns:
- a
IUserobject.
-
setModifiedBy
Description copied from interface:IResourceSets last user who modified the resource.- Specified by:
setModifiedByin interfaceIResource- Parameters:
user- The lastIUserwho modified the resource.
-
getModifiedBy
Description copied from interface:IResourceGets the last user who modified the resource.- Specified by:
getModifiedByin interfaceIResource- Returns:
- a
IUserobject.
-
setLanguage
Description copied from interface:IFileSets the language of the file.- Specified by:
setLanguagein interfaceIFile- Parameters:
language- the language to set.
-
getLanguage
Description copied from interface:IFileGets the language of the file.- Specified by:
getLanguagein interfaceIFile- Returns:
- a
Stringof the file.
-
addCategory
Description copied from interface:IFileAssociates a category to the file.- Specified by:
addCategoryin interfaceIFile- Parameters:
category- theICategoryto add.
-
addCategories
Description copied from interface:IFileAssociates a collection ofICategoryobjects to the file.- Specified by:
addCategoriesin interfaceIFile- Parameters:
categories- a collection ofICategoryobjects.
-
exists
Description copied from interface:IResourceChecks if a property exists. -
setValueNoEvents
Description copied from interface:IResourceSets a value to a property without throwing any event.- Specified by:
setValueNoEventsin interfaceIResource- Parameters:
propertyName- The system name of the property.value- The value object to set.
-
setValue
Description copied from interface:IResourceSets a value to a property -
getValue
Description copied from interface:IResourceGets the value of a property. -
getList
Description copied from interface:IResourceGets the available values of a list property.- Specified by:
getListin interfaceIResource- Parameters:
propertyName- The system name of the property.- Returns:
- A java.util.Collection of
IOptionList.IOption.
-
setList
Description copied from interface:IResourceSets the available values for a list property.- Specified by:
setListin interfaceIResource- Parameters:
propertyName- The system name of the property.value- A java.util.Collection ofIOptionList.IOptionobjects..
-
getLibrary
Description copied from interface:IFileGets the library.- Specified by:
getLibraryin interfaceIFile- Returns:
- a
ILibraryobject.
-
getParentFolder
Description copied from interface:IFileGets the parent folder.- Specified by:
getParentFolderin interfaceIFile- Returns:
- a
IFolderobject.
-
getHistory
Description copied from interface:IResourceGets the history of the resource- Specified by:
getHistoryin interfaceIResource- Returns:
- a
IResourceHistoryobject.
-
getDefinition
Description copied from interface:IResourceGets the definition of the resource- Specified by:
getDefinitionin interfaceIResource- Returns:
- A
IResourceDefinitionobject.
-
setDefinition
Description copied from interface:IFileAssociates the specified definition with the file.- Specified by:
setDefinitionin interfaceIFile- Parameters:
definition- theIResourceDefinitionobject.
-
createLinkedResource
Description copied from interface:IResourceCreates a linked resource within a property.- Specified by:
createLinkedResourcein interfaceIResource- Parameters:
propertyName- The system name of the property.- Returns:
- a
ILinkedResourceobject.
-
addLinkedResource
Description copied from interface:IResourceAllows to add a linked resource.- Specified by:
addLinkedResourcein interfaceIResource- Parameters:
linkedResource- TheILinkedResourceto add.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
addLinkedResources
Description copied from interface:IResourceAllows to add linked resources.- Specified by:
addLinkedResourcesin interfaceIResource- Parameters:
linkedResources- The collection ofILinkedResourceobjects to add.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
getLinkedResources
Description copied from interface:IResourceRetrieves all the linked resources of a property.- Specified by:
getLinkedResourcesin interfaceIResource- Parameters:
propertyName- The system name of the property.- Returns:
- A java.util.Collection of
ILinkedResourceobjects.
-
save
Description copied from interface:IElementSaves or updates the element.- Specified by:
savein interfaceIElement- Overrides:
savein classPortalElement- Parameters:
context- The Execution context.- Returns:
- return true if succeeded, false otherwise.
-
save
public boolean save()Description copied from interface:IResourceSaves the resource. -
save
Description copied from interface:IResourceSaves a specified property. -
delete
Description copied from interface:IDeletionSupportDeletes theIElementobject.- Specified by:
deletein interfaceIDeletionSupport- Parameters:
context- The Execution context.
-
allowEvents
public void allowEvents()Description copied from interface:IResourceAllows events to be thrown.- Specified by:
allowEventsin interfaceIResource
-
denyEvents
public void denyEvents()Description copied from interface:IResourcePrevents from throwing events.- Specified by:
denyEventsin interfaceIResource
-
removeCategories
Description copied from interface:IFileRemoves the associations between the file and the collection of categories.- Specified by:
removeCategoriesin interfaceIFile- Parameters:
categories- the collection ofICategoryobjects to remove.
-
removeCategory
Description copied from interface:IFileRemoves the association between the file and the specified category.- Specified by:
removeCategoryin interfaceIFile- Parameters:
category- theICategoryobject to remove.
-
getCategories
Description copied from interface:IFileGets all the associated categories.- Specified by:
getCategoriesin interfaceIFile- Returns:
- a collection of
ICategoryobjects.
-
deleteLinkedResource
Description copied from interface:IResourceAllows to remove a linked resource.- Specified by:
deleteLinkedResourcein interfaceIResource- Parameters:
linkedResource- TheILinkedResourceto remove.
-
deleteLinkedResources
Description copied from interface:IResourceAllows to remove a collection of linked resources.- Specified by:
deleteLinkedResourcesin interfaceIResource- Parameters:
linkedResources- The collection ofILinkedResourceobjects.
-
checkIn
public void checkIn()Description copied from interface:IFileCheck in a file. -
checkOut
public void checkOut()Description copied from interface:IFileCheck out a file. -
undoCheckOut
public void undoCheckOut()Description copied from interface:IFileUndo check out.- Specified by:
undoCheckOutin interfaceIFile
-
checkedOutBy
Description copied from interface:IFileRetrieve the user who checked out the file.- Specified by:
checkedOutByin interfaceIFile- Returns:
- a
IUserobject.
-
isCheckedOut
public boolean isCheckedOut()Description copied from interface:IFileCheck if the file has been checked out.- Specified by:
isCheckedOutin interfaceIFile- Returns:
- true if the file has been checked out, false otherwise.
-
moveTo
Description copied from interface:IFileMove a file to a folder. -
refresh
public void refresh()Description copied from interface:IResourceRefresh all children values cache -
refresh
Description copied from interface:IResourceRefresh children cache for given property -
getText
-
isInTrash
public boolean isInTrash()Description copied from interface:ITrashSupportCheck if the element has been sent to the trash.- Specified by:
isInTrashin interfaceITrashSupport- Returns:
- true if yes,
} otherwise.
invalid @link
{@link false
-
restoreFromTrash
public void restoreFromTrash()Description copied from interface:ITrashSupportRestore the element from the trash.- Specified by:
restoreFromTrashin interfaceITrashSupport
-
moveToTrash
public void moveToTrash()Description copied from interface:ITrashSupportMove the element to the trash.- Specified by:
moveToTrashin interfaceITrashSupport
-
deleteFromTrash
public void deleteFromTrash()Description copied from interface:ITrashSupportDelete the element from the trash.- Specified by:
deleteFromTrashin interfaceITrashSupport
-