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 TypeMethodDescriptionboolean
addLinkedResource
(ILinkedResource linkedResource) Allows to add a linked resource.boolean
addLinkedResources
(Collection<? extends ILinkedResource> linkedResources) Allows to add linked resources.void
Allows events to be thrown.createLinkedResource
(String propertyName) Creates a linked resource within a property.void
deleteLinkedResource
(ILinkedResource linkedResource) Allows to remove a linked resource.void
deleteLinkedResources
(Collection<? extends ILinkedResource> linkedResources) Allows to remove a collection of linked resources.void
Prevents from throwing events.boolean
Checks 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.void
refresh()
Refresh all children values cachevoid
Refresh children cache for given propertyboolean
save()
Deprecated.Use save(IContext) method instead.boolean
Saves a specified property.void
setCreatedBy
(IUser user) Sets the creator of the resource.void
setCreatedDate
(Date date) Sets the created date.void
setList
(String propertyName, Collection<? extends IOptionList.IOption> value) Sets the available values for a list property.void
setModifiedBy
(IUser user) Sets last user who modified the resource.void
setModifiedDate
(Date date) Sets the modified date.void
Sets a value to a propertyvoid
setValueNoEvents
(String propertyName, Object value) Sets a value to a property without throwing any event.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods 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
Date
object.
-
setCreatedDate
Sets the created date.- Parameters:
date
- TheDate
to set.
-
setModifiedDate
Sets the modified date.- Parameters:
date
- TheDate
to set.
-
getModifiedDate
Date getModifiedDate()Gets the modified date.- Returns:
- a
Date
object.
-
getCreatedBy
IUser getCreatedBy()Gets the creator of the resource.- Returns:
- a
IUser
object.
-
setCreatedBy
Sets the creator of the resource. Can only be set if the resource has not been created yet- Parameters:
user
- The creatorIUser
of the resource.
-
setModifiedBy
Sets last user who modified the resource.- Parameters:
user
- The lastIUser
who modified the resource.
-
getModifiedBy
IUser getModifiedBy()Gets the last user who modified the resource.- Returns:
- a
IUser
object.
-
exists
Checks if a property exists.- Parameters:
propertyName
- The system name of the property.- Returns:
- true if the property exists,
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.IOption
objects..
-
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
IResourceDefinition
object.
-
createLinkedResource
Creates a linked resource within a property.- Parameters:
propertyName
- The system name of the property.- Returns:
- a
ILinkedResource
object.
-
addLinkedResource
Allows to add a linked resource.- Parameters:
linkedResource
- TheILinkedResource
to add.- Returns:
- true if succeed,
invalid @link
{@link false
-
addLinkedResources
Allows to add linked resources.- Parameters:
linkedResources
- The collection ofILinkedResource
objects to add.- Returns:
- true if succeed,
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
ILinkedResource
objects.
-
deleteLinkedResource
Allows to remove a linked resource.- Parameters:
linkedResource
- TheILinkedResource
to remove.
-
deleteLinkedResources
Allows to remove a collection of linked resources.- Parameters:
linkedResources
- The collection ofILinkedResource
objects.
-
getHistory
IResourceHistory getHistory()Gets the history of the resource- Returns:
- a
IResourceHistory
object.
-
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,
invalid @link
{@link false
-
save
Saves a specified property.- Parameters:
propertyName
- The system name of the property.- Returns:
- true if succeed,
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
String
labels objects.
-