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 Summary
Modifier 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.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()Gets the name of a resource.- Returns:
- a string object.
-
getCreatedDate
Date getCreatedDate()Gets the created date.- Returns:
- a
Dateobject.
-
setCreatedDate
Sets the created date.- Parameters:
date- TheDateto set.
-
setModifiedDate
Sets the modified date.- Parameters:
date- TheDateto set.
-
getModifiedDate
Date getModifiedDate()Gets the modified date.- Returns:
- a
Dateobject.
-
getCreatedBy
IUser getCreatedBy()Gets the creator of the resource.- Returns:
- a
IUserobject.
-
setCreatedBy
Sets the creator of the resource. Can only be set if the resource has not been created yet- Parameters:
user- The creatorIUserof the resource.
-
setModifiedBy
Sets last user who modified the resource.- Parameters:
user- The lastIUserwho modified the resource.
-
getModifiedBy
IUser getModifiedBy()Gets the last user who modified the resource.- Returns:
- a
IUserobject.
-
exists
Checks if a property exists.- Parameters:
propertyName- The system name of the property.- Returns:
- true if the property exists,
} otherwise.
invalid @link
{@link false
-
setValue
Sets a value to a property- Parameters:
propertyName- The system name of the property.value- The value object to set.
-
setValueNoEvents
Sets a value to a property without throwing any event.- Parameters:
propertyName- The system name of the property.value- The value object to set.
-
getValue
Gets the value of a property.- Parameters:
propertyName- The system name of the property.- Returns:
- an
Object.
-
setList
Sets the available values for a list property.- Parameters:
propertyName- The system name of the property.value- A java.util.Collection ofIOptionList.IOptionobjects..
-
getList
Gets the available values of a list property.- Parameters:
propertyName- The system name of the property.- Returns:
- A java.util.Collection of
IOptionList.IOption.
-
getDefinition
IResourceDefinition getDefinition()Gets the definition of the resource- Returns:
- A
IResourceDefinitionobject.
-
createLinkedResource
Creates a linked resource within a property.- Parameters:
propertyName- The system name of the property.- Returns:
- a
ILinkedResourceobject.
-
addLinkedResource
Allows to add a linked resource.- Parameters:
linkedResource- TheILinkedResourceto add.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
addLinkedResources
Allows to add linked resources.- Parameters:
linkedResources- The collection ofILinkedResourceobjects to add.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
getLinkedResources
Retrieves all the linked resources of a property.- Parameters:
propertyName- The system name of the property.- Returns:
- A java.util.Collection of
ILinkedResourceobjects.
-
deleteLinkedResource
Allows to remove a linked resource.- Parameters:
linkedResource- TheILinkedResourceto remove.
-
deleteLinkedResources
Allows to remove a collection of linked resources.- Parameters:
linkedResources- The collection ofILinkedResourceobjects.
-
getHistory
IResourceHistory getHistory()Gets the history of the resource- Returns:
- a
IResourceHistoryobject.
-
allowEvents
void allowEvents()Allows events to be thrown. -
denyEvents
void denyEvents()Prevents from throwing events. -
save
Deprecated.Use save(IContext) method instead.Saves the resource.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
save
Saves a specified property.- Parameters:
propertyName- The system name of the property.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
refresh
void refresh()Refresh all children values cache -
refresh
Refresh children cache for given property- Parameters:
propertyName-
-
getText
- Parameters:
propertyName- The system name of the property.- Returns:
- A java.util.Collection of
Stringlabels objects.
-