public class RenameObject extends XMLRequest
Constructor and Description |
---|
RenameObject(IFolder oldName,
UC4ObjectName newName)
This constructor is used to rename folders.
|
RenameObject(IFolder oldName,
UC4ObjectName newName,
java.lang.String title)
This constructor is used to rename folders.
|
RenameObject(UC4ObjectName oldName,
UC4ObjectName newName,
IFolder folder)
Deprecated.
Use RenameObject(UC4ObjectName oldName, UC4ObjectName newName, IFolder folder, String title) instead
|
RenameObject(UC4ObjectName oldName,
UC4ObjectName newName,
IFolder folder,
java.lang.String title)
Constructs a
RenameObject . |
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
protected org.w3c.dom.Element |
getReplaceRequest() |
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
ignoreMessageBox() |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
void |
setForceRename()
Method to rename the object forcefully.
|
void |
setRenameIfUsed(boolean renameIfUsed)
The parameter
renameIfUsed can be set to false
to prevent objects from beeing renamend if they are used in other objects. |
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, setMessageBox, showQuarantineNotification
@Deprecated public RenameObject(UC4ObjectName oldName, UC4ObjectName newName, IFolder folder)
RenameObject
.
This constructor is used to rename UC4 Objects except folders.
To rename a folder use the constructor RenameObject(IFolder oldName, UC4ObjectName newName)
.oldName
- Name of the UC4 Object which should be renamed.newName
- New namefolder
- Folder containing the objectpublic RenameObject(UC4ObjectName oldName, UC4ObjectName newName, IFolder folder, java.lang.String title)
RenameObject
.
This constructor is used to rename UC4 Objects except folders.
To rename a folder use the contructor RenameObject(IFolder oldName, UC4ObjectName newName)
.oldName
- Name of the UC4 Object which should be renamed.newName
- New namefolder
- Folder containing the objecttitle
- New title of the objectpublic RenameObject(IFolder oldName, UC4ObjectName newName)
oldName
- Folder which should be renamednewName
- New name of the folderpublic RenameObject(IFolder oldName, UC4ObjectName newName, java.lang.String title)
oldName
- Folder which should be renamednewName
- New name of the foldertitle
- New title of the folderpublic void setRenameIfUsed(boolean renameIfUsed)
renameIfUsed
can be set to false
to prevent objects from beeing renamend if they are used in other objects.
The default behavior is to rename without searching for the use.renameIfUsed
- If set to false a message box is returned if the object is used.public void setForceRename()
protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
protected org.w3c.dom.Element getReplaceRequest()
protected boolean ignoreMessageBox()
ignoreMessageBox
in class XMLRequest
protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise