public interface IResource
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreationDate()
Returns the creation date of this resource.
|
IUser |
getCreator()
Returns the creator (user) of this resource.
|
java.lang.String |
getDescription()
Returns the description of this resource.
|
Id |
getId()
Returns the Id of this resource.
|
IUser |
getLastModifiedBy()
Returns the user who last modified this resource.
|
java.util.Date |
getModifiedDate()
Returns the last modified date of this resource.
|
java.lang.String |
getName()
Returns the name of this resource.
|
IFolder |
getParentFolder()
Returns the parent folder for this resource, if it exists; otherwise null.
|
java.lang.String |
getPath()
Returns the full path of this resource.
|
boolean |
isFolder()
Determines whether the resource is a folder.
|
void |
setDescription(java.lang.String description)
Sets the description of a resource.
|
void |
setName(java.lang.String name)
Sets the name of a resource.
|
void |
setParentFolder(IFolder parentFolder)
Sets the parent folder using the supplied folder.
|
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getPath()
Id getId()
boolean isFolder()
IFolder getParentFolder()
IUser getCreator()
java.util.Date getCreationDate()
java.util.Date getModifiedDate()
IUser getLastModifiedBy()
void setParentFolder(IFolder parentFolder)
Sets the parent folder using the supplied folder. This will move the IResource to the new parent folder after
IResourceService.saveResource(IResource)
is invoked. The path of the Resource will be updated to the new path under the
new parent folder. Any IResources contained by an IFolder will similarly be moved to the new path.
Any associated children for IGRCObjects will not be moved. Associations will be unchanged.
Restrictions: System created folders for self-contained objects cannot be moved. Moving a self-contained GRCObject itself will not move the system created folder.
parentFolder
- the parent folder to move this resource tovoid setName(java.lang.String name)
name
- the name of a resource. The name cannot be null.void setDescription(java.lang.String description)
description
- the description of a resource
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.