Package com.uc4.communication.requests
Class DeepRename
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.DeepRename
Deprecated.
Rename an object including all objects in the same folder and below.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.AbortIfNameExistsMode.static enumDeprecated.ChangeFolderNameMode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Deprecated.Creates the XML Document for the request.protected StringgetSrc()Deprecated.Returns the request source.protected booleanDeprecated.This method is used internally.voidsetAbortIfNameExists(DeepRename.AbortIfNameExistsMode nameExistsMode) Deprecated.Sets the mode for abortIfNameExists.voidsetCleanPattern(String cleanPattern) Deprecated.Sets the new name.voidsetIncludeFolderNames(DeepRename.IncludeFolderNamesMode includeFolderNamesMode) Deprecated.Sets the mode for includeFolderNames.voidsetNamePattern(String namePattern) Deprecated.Sets the name pattern of the object to rename.Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleContent, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
Constructor Details
-
DeepRename
public DeepRename()Deprecated.Constructs aDeepRenamerequest.
-
-
Method Details
-
getSrc
Deprecated.Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Deprecated.Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
setNamePattern
Deprecated.Sets the name pattern of the object to rename.- Parameters:
namePattern- wildcard with exactly one '*': like "BEGIN.*.END" new object names will be created like "BEGIN.NAME.END pattern must contain a '*', strings before/after the '*' are optional
-
setCleanPattern
Deprecated.Sets the new name.- Parameters:
cleanPattern- wildcard with exactly one '*': like "BEFORE.*.AFTER" old object names are used to create new object names using parameter namePattern, however, cleanPatter is used to remove leading and/or trailing characters. in this example, prefix/postfix "BEFORE." / ".AFTER" is removed from the begin / end of old names and "BEGIN_" / "_END" is used as new prefix / postfix to create the new name, e.g., old name "BEFORE.NAME.AFTER" is converted to new name "BEGIN.NAME.END" pattern must contain a '*', strings before/after the '*' are optional
-
setAbortIfNameExists
Deprecated.Sets the mode for abortIfNameExists.- Parameters:
nameExistsMode- One of theAbortIfNameExistsModedefined in this class
-
setIncludeFolderNames
Deprecated.Sets the mode for includeFolderNames.- Parameters:
includeFolderNamesMode- One of theIncludeFolderNamesModedefined in this class
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Deprecated.Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-