public interface DesignerProjectContext extends ProjectHolder, ResourceLockManager
| Modifier and Type | Method and Description |
|---|---|
java.util.UUID |
addFolder(long newResourceId,
java.lang.String moduleId,
int scope,
java.lang.String folderName,
java.util.UUID parent)
Adds a new folder under the given parent.
|
boolean |
canEditResourceProtection()
Checks whether or not the current logged in user can edit the protection bits of project resources.
|
void |
deleteResource(long resourceId)
Removes the resource from the current project
|
ProjectScope |
getScope() |
void |
moveResource(long resourceId,
java.util.UUID newParent)
Moves the resource to a new parent.
|
void |
structuredRename(long resourceId,
java.lang.String newName)
Attempts to rename the given project resource, respecting the requirement that the name be unique amongst
siblings
(with respect to the folder structure)
|
void |
updateResource(long id,
byte[] data)
Convenience call that updates only the serialized bytes of a project resource, leaving all other parameters
intact.
|
void |
updateResource(ProjectResource resource)
Adds or updates the given project resource
|
addProjectChangeListener, applyDiff, getProject, removeProjectChangeListenerhasLock, isLockModified, isLockOpen, newResourceId, releaseLock, requestLock, requestLockQuietly, synchLocks, updateLockProjectScope getScope()
void updateResource(long id,
byte[] data)
void updateResource(ProjectResource resource)
void deleteResource(long resourceId)
boolean canEditResourceProtection()
throws GatewayException
GatewayExceptionvoid structuredRename(long resourceId,
java.lang.String newName)
throws java.lang.IllegalArgumentException
resourceId - The ID of the resource to renamenewName - The new namejava.lang.IllegalArgumentException - Thrown when the name is not unique.void moveResource(long resourceId,
java.util.UUID newParent)
java.util.UUID addFolder(long newResourceId,
java.lang.String moduleId,
int scope,
java.lang.String folderName,
java.util.UUID parent)