public interface IResource extends IElement, IDeletionSupport, ISecuritySupport, ISearchSupport, IProtocolSupport
IWorkflowInstance, 
ILinkedResource, 
IFile| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addLinkedResource(ILinkedResource linkedResource)
Allows to add a linked resource. 
 | 
boolean | 
addLinkedResources(Collection<? extends ILinkedResource> linkedResources)
Allows to add linked resources. 
 | 
void | 
allowEvents()
Allows events to be thrown. 
 | 
ILinkedResource | 
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 | 
denyEvents()
Prevents from throwing events. 
 | 
boolean | 
exists(String propertyName)
Checks if a property exists. 
 | 
IUser | 
getCreatedBy()
Gets the creator of the resource. 
 | 
Date | 
getCreatedDate()
Gets the created date. 
 | 
IResourceDefinition | 
getDefinition()
Gets the definition of the resource 
 | 
IResourceHistory | 
getHistory()
Gets the history of the resource 
 | 
Collection<? extends ILinkedResource> | 
getLinkedResources(String propertyName)
Retrieves all the linked resources of a property. 
 | 
Collection<? extends IOptionList.IOption> | 
getList(String propertyName)
Gets the available values of a list property. 
 | 
IUser | 
getModifiedBy()
Gets the last user who modified the resource. 
 | 
Date | 
getModifiedDate()
Gets the modified date. 
 | 
String | 
getName()
Gets the name of a resource. 
 | 
Object | 
getText(String propertyName)  | 
Object | 
getValue(String propertyName)
Gets the value of a property. 
 | 
void | 
refresh()
Refresh all children values cache 
 | 
void | 
refresh(String propertyName)
Refresh children cache for given property 
 | 
boolean | 
save()
Deprecated. 
 
Use save(IContext) method instead. 
 | 
boolean | 
save(String propertyName)
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 | 
setValue(String propertyName,
        Object value)
Sets a value to a property 
 | 
void | 
setValueNoEvents(String propertyName,
                Object value)
Sets a value to a property without throwing any event. 
 | 
getId, getModule, getNativeObject, getPath, savedeletegetProtocolURI, getProtocolURIString getName()
void setCreatedDate(Date date)
date - The Date to set.void setModifiedDate(Date date)
date - The Date to set.void setCreatedBy(IUser user)
user - The creator IUser of the resource.void setModifiedBy(IUser user)
user - The last IUser who modified the resource.IUser getModifiedBy()
IUser object.boolean exists(String propertyName)
propertyName - The system name of the property.false otherwise.void setValue(String propertyName, Object value)
propertyName - The system name of the property.value - The value object to set.void setValueNoEvents(String propertyName, Object value)
propertyName - The system name of the property.value - The value object to set.Object getValue(String propertyName)
propertyName - The system name of the property.Object.void setList(String propertyName, Collection<? extends IOptionList.IOption> value)
propertyName - The system name of the property.value - A java.util.Collection of IOptionList.IOption objects..Collection<? extends IOptionList.IOption> getList(String propertyName)
propertyName - The system name of the property.IOptionList.IOption.IResourceDefinition getDefinition()
IResourceDefinition object.ILinkedResource createLinkedResource(String propertyName)
propertyName - The system name of the property.ILinkedResource object.boolean addLinkedResource(ILinkedResource linkedResource)
linkedResource - The ILinkedResource to add.false otherwise.boolean addLinkedResources(Collection<? extends ILinkedResource> linkedResources)
linkedResources - The collection of ILinkedResource objects to add.false otherwise.Collection<? extends ILinkedResource> getLinkedResources(String propertyName)
propertyName - The system name of the property.ILinkedResource objects.void deleteLinkedResource(ILinkedResource linkedResource)
linkedResource - The ILinkedResource to remove.void deleteLinkedResources(Collection<? extends ILinkedResource> linkedResources)
linkedResources - The collection of ILinkedResource objects.IResourceHistory getHistory()
IResourceHistory object.void allowEvents()
void denyEvents()
@Deprecated boolean save()
false otherwise.boolean save(String propertyName)
propertyName - The system name of the property.false otherwise.void refresh()
void refresh(String propertyName)
propertyName - Copyright © 2019 Visiativ Software. All rights reserved.