Package com.axemble.vdoc.sdk.interfaces
Interface IResource
- All Superinterfaces:
- IDeletionSupport,- IElement,- IProtocolSupport,- ISearchSupport,- ISecuritySupport,- Serializable
- All Known Subinterfaces:
- IDataUnit,- IFile,- ILinkedResource,- ILockSupport,- IStorageResource,- IVersion,- IWorkflowInstance
- All Known Implementing Classes:
- GenericResource,- PortalFile,- ProcessLinkedResource,- ProcessResource,- ProcessStorageResource,- ProcessWorkflowInstance
public interface IResource
extends IElement, IDeletionSupport, ISecuritySupport, ISearchSupport, IProtocolSupport
A base interface for resources
- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddLinkedResource(ILinkedResource linkedResource) Allows to add a linked resource.booleanaddLinkedResources(Collection<? extends ILinkedResource> linkedResources) Allows to add linked resources.voidAllows events to be thrown.createLinkedResource(String propertyName) Creates a linked resource within a property.voiddeleteLinkedResource(ILinkedResource linkedResource) Allows to remove a linked resource.voiddeleteLinkedResources(Collection<? extends ILinkedResource> linkedResources) Allows to remove a collection of linked resources.voidPrevents from throwing events.booleanChecks if a property exists.Gets the creator of the resource.Gets the created date.Gets the definition of the resourceGets the history of the resourceCollection<? extends ILinkedResource> getLinkedResources(String propertyName) Retrieves all the linked resources of a property.Collection<? extends IOptionList.IOption> 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 value of a property.voidrefresh()Refresh all children values cachevoidRefresh children cache for given propertybooleansave()Deprecated.Use save(IContext) method instead.booleanSaves a specified property.voidsetCreatedBy(IUser user) Sets the creator of the resource.voidsetCreatedDate(Date date) Sets the created date.voidsetList(String propertyName, Collection<? extends IOptionList.IOption> 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 a value to a propertyvoidsetValueNoEvents(String propertyName, Object value) Sets a value to a property without throwing any event.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.IProtocolSupportgetProtocolURI, getProtocolURI
- 
Method Details- 
getNameString getName()Gets the name of a resource.- Returns:
- a string object.
 
- 
getCreatedDateDate getCreatedDate()Gets the created date.- Returns:
- a Dateobject.
 
- 
setCreatedDateSets the created date.- Parameters:
- date- The- Dateto set.
 
- 
setModifiedDateSets the modified date.- Parameters:
- date- The- Dateto set.
 
- 
getModifiedDateDate getModifiedDate()Gets the modified date.- Returns:
- a Dateobject.
 
- 
getCreatedByIUser getCreatedBy()Gets the creator of the resource.- Returns:
- a IUserobject.
 
- 
setCreatedBySets the creator of the resource. Can only be set if the resource has not been created yet- Parameters:
- user- The creator- IUserof the resource.
 
- 
setModifiedBySets last user who modified the resource.- Parameters:
- user- The last- IUserwho modified the resource.
 
- 
getModifiedByIUser getModifiedBy()Gets the last user who modified the resource.- Returns:
- a IUserobject.
 
- 
existsChecks if a property exists.- Parameters:
- propertyName- The system name of the property.
- Returns:
- true if the property exists, 
} otherwise.invalid @link{@link false
 
- 
setValueSets a value to a property- Parameters:
- propertyName- The system name of the property.
- value- The value object to set.
 
- 
setValueNoEventsSets a value to a property without throwing any event.- Parameters:
- propertyName- The system name of the property.
- value- The value object to set.
 
- 
getValueGets the value of a property.- Parameters:
- propertyName- The system name of the property.
- Returns:
- an Object.
 
- 
setListSets the available values for a list property.- Parameters:
- propertyName- The system name of the property.
- value- A java.util.Collection of- IOptionList.IOptionobjects..
 
- 
getListGets the available values of a list property.- Parameters:
- propertyName- The system name of the property.
- Returns:
- A java.util.Collection of IOptionList.IOption.
 
- 
getDefinitionIResourceDefinition getDefinition()Gets the definition of the resource- Returns:
- A IResourceDefinitionobject.
 
- 
createLinkedResourceCreates a linked resource within a property.- Parameters:
- propertyName- The system name of the property.
- Returns:
- a ILinkedResourceobject.
 
- 
addLinkedResourceAllows to add a linked resource.- Parameters:
- linkedResource- The- ILinkedResourceto add.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
addLinkedResourcesAllows to add linked resources.- Parameters:
- linkedResources- The collection of- ILinkedResourceobjects to add.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
getLinkedResourcesRetrieves all the linked resources of a property.- Parameters:
- propertyName- The system name of the property.
- Returns:
- A java.util.Collection of ILinkedResourceobjects.
 
- 
deleteLinkedResourceAllows to remove a linked resource.- Parameters:
- linkedResource- The- ILinkedResourceto remove.
 
- 
deleteLinkedResourcesAllows to remove a collection of linked resources.- Parameters:
- linkedResources- The collection of- ILinkedResourceobjects.
 
- 
getHistoryIResourceHistory getHistory()Gets the history of the resource- Returns:
- a IResourceHistoryobject.
 
- 
allowEventsvoid allowEvents()Allows events to be thrown.
- 
denyEventsvoid denyEvents()Prevents from throwing events.
- 
saveDeprecated.Use save(IContext) method instead.Saves the resource.- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
saveSaves a specified property.- Parameters:
- propertyName- The system name of the property.
- Returns:
- true if succeed, 
} otherwise.invalid @link{@link false
 
- 
refreshvoid refresh()Refresh all children values cache
- 
refreshRefresh children cache for given property- Parameters:
- propertyName-
 
- 
getText- Parameters:
- propertyName- The system name of the property.
- Returns:
- A java.util.Collection of Stringlabels objects.
 
 
-