Package com.uc4.api.objects
Class UserRight
java.lang.Object
com.uc4.api.objects.UserRight
- All Implemented Interfaces:
Rights
This class represents a row on the authorizations tab of an USER object.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the filter for file names.Returns the filter for file names.intgetGrp()Returns the authorization group or-1if NOT is selected.getHost()Returns the filter for Agent names.Returns the filter for Agent names.getLogin()Returns the filter for names of Login objects.Returns the filter for names of Login objects.getName()Returns the filter for object name and folder path.getType()Returns the object type.booleanisCancel()Returns the access method: Cancel.booleanAccess method: Define SLA.booleanisDelete()Returns the access method: Delete.booleanReturns the access method: Execute.protected booleanbooleanAccess method: Modify at runtime This access method permits the setting of trace options on UC4 Automation Engines or Agents and the ending of RemoteTaskManager and Event objects.booleanisRead()Returns the access method: Read.booleanisReport()Access to Reports.booleanAccess to Statistics.booleanisWrite()Returns the access method: Write.protected voidvoidsetCancel(boolean cancel) Sets the access method: Cancel.voidsetDefineSLA(boolean defineSLA) Sets the access method: Define SLA.voidsetDelete(boolean delete) Sets the access method: Delete.voidsetExecute(boolean execute) Sets the access method: Execute.voidsetFileNameDestination(String fileNameDestination) Sets the filter for file names (FileTransfer destination).voidsetFileNameSource(String fileNameSource) Sets the filter for file names (FileTransfer source).voidsetGrp(int grp) Sets the authorization group.voidSets the filter for an Agent name (Job execution, FileTransfer source).voidsetHostDestination(String hostDestination) Sets the filter for Agent names (FileTransfer destination).voidSets the filter for names of Login objects (Job execution, FileTransfer) source).voidsetLoginDestination(String loginDestination) Sets the filter for names of Login objects (FileTransfer destination).protected voidsetModified(boolean b) voidsetModifyAtRuntime(boolean modifyAtRuntime) Sets the access method: Modify at runtime This access method permits the setting of trace options on UC4 Automation Engines or Agents and the ending of RemoteTaskManager and Event objects.voidSets the filter for object name and folder path.voidsetRead(boolean read) Sets the access method: Read.voidsetReport(boolean report) Sets access to Reports.voidsetStatistics(boolean statistics) Sets access to Statistics.voidsetType(UserRight.Type type) Sets the object type.voidsetWrite(boolean write) Sets the access method: Write.
-
Constructor Details
-
UserRight
public UserRight()Creates a new instance ofUserRight. The group is set to "1" and the type to "*". -
UserRight
-
-
Method Details
-
save
-
getType
Returns the object type.- Returns:
- Type
-
setType
Sets the object type.- Parameters:
type- Type
-
getGrp
public int getGrp()Returns the authorization group or-1if NOT is selected.- Returns:
- Authorization group
-
setGrp
public void setGrp(int grp) Sets the authorization group. The value-1can be used to set the Group to "NOT". Access rights are expressed in the authorization groups 1 to 9. These groups are all on the same level. The numbers are only used to distinguish the particular groups. All access rights of the same authorization groups are connected to each other via a logical OR. Access rights defined for an authorization group thus sum up. All access rights of different authorization groups are connected via a logical AND. Only accesses for which access authorization was granted in all authorization groups are allowed. "NOT" stands for access denial. It does not depend on an authorization group and applies in all cases.- Parameters:
grp- Authorization group
-
getName
Returns the filter for object name and folder path.- Returns:
- Name
-
setName
Sets the filter for object name and folder path. The wildcard characters "*" and "?" may be used. "?" stands for exactly one, while "*" stands for any number of characters. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
name- maximum 200 characters
-
getHost
Returns the filter for Agent names.- Returns:
- Agent name
-
setHost
Sets the filter for an Agent name (Job execution, FileTransfer source). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
host- maximum 200 characters
-
getLogin
Returns the filter for names of Login objects.- Returns:
- Name of Login Objects.
-
setLogin
Sets the filter for names of Login objects (Job execution, FileTransfer) source). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
login- maximum 200 characters
-
getFileNameSource
Returns the filter for file names.- Returns:
- File transfer source
-
setFileNameSource
Sets the filter for file names (FileTransfer source). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
fileNameSource- maximum 255 characters
-
getFileNameDestination
Returns the filter for file names.- Returns:
- File Transfer destination
-
setFileNameDestination
Sets the filter for file names (FileTransfer destination). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
fileNameDestination- maximum 255 characters
-
getHostDestination
Returns the filter for Agent names.- Returns:
- File Transfer destination
-
setHostDestination
Sets the filter for Agent names (FileTransfer destination). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
hostDestination- maximum 200 characters
-
getLoginDestination
Returns the filter for names of Login objects.- Returns:
- FileTransfer destination
-
setLoginDestination
Sets the filter for names of Login objects (FileTransfer destination). The wildcard characters "*" and "?" may be used. This field may also include more than one filter. Several filters must be separated by commas.- Parameters:
loginDestination- maximum 200 characters
-
isRead
public boolean isRead()Description copied from interface:RightsReturns the access method: Read. -
setRead
public void setRead(boolean read) Description copied from interface:RightsSets the access method: Read. -
isWrite
public boolean isWrite()Description copied from interface:RightsReturns the access method: Write. -
setWrite
public void setWrite(boolean write) Description copied from interface:RightsSets the access method: Write. -
isExecute
public boolean isExecute()Description copied from interface:RightsReturns the access method: Execute. -
setExecute
public void setExecute(boolean execute) Description copied from interface:RightsSets the access method: Execute.- Specified by:
setExecutein interfaceRights- Parameters:
execute-trueto enable,falseto disable this action
-
isDelete
public boolean isDelete()Description copied from interface:RightsReturns the access method: Delete. -
setDelete
public void setDelete(boolean delete) Description copied from interface:RightsSets the access method: Delete. -
isCancel
public boolean isCancel()Description copied from interface:RightsReturns the access method: Cancel. -
setCancel
public void setCancel(boolean cancel) Description copied from interface:RightsSets the access method: Cancel. -
isStatistics
public boolean isStatistics()Description copied from interface:RightsAccess to Statistics.- Specified by:
isStatisticsin interfaceRights- Returns:
trueif enabled,falseif disabled
-
setStatistics
public void setStatistics(boolean statistics) Description copied from interface:RightsSets access to Statistics.- Specified by:
setStatisticsin interfaceRights- Parameters:
statistics-trueto enable,falseto disable this action
-
isReport
public boolean isReport()Description copied from interface:RightsAccess to Reports. -
setReport
public void setReport(boolean report) Description copied from interface:RightsSets access to Reports. -
isModifyAtRuntime
public boolean isModifyAtRuntime()Description copied from interface:RightsAccess method: Modify at runtime This access method permits the setting of trace options on UC4 Automation Engines or Agents and the ending of RemoteTaskManager and Event objects.- Specified by:
isModifyAtRuntimein interfaceRights- Returns:
trueif enabled,falseif disabled
-
setModifyAtRuntime
public void setModifyAtRuntime(boolean modifyAtRuntime) Description copied from interface:RightsSets the access method: Modify at runtime This access method permits the setting of trace options on UC4 Automation Engines or Agents and the ending of RemoteTaskManager and Event objects.- Specified by:
setModifyAtRuntimein interfaceRights- Parameters:
modifyAtRuntime-trueto enable,falseto disable this action
-
isDefineSLA
public boolean isDefineSLA()Description copied from interface:RightsAccess method: Define SLA.- Specified by:
isDefineSLAin interfaceRights- Returns:
trueif enabled,falseif disabled
-
setDefineSLA
public void setDefineSLA(boolean defineSLA) Description copied from interface:RightsSets the access method: Define SLA.- Specified by:
setDefineSLAin interfaceRights- Parameters:
defineSLA-trueto enable,falseto disable this action
-
isModified
protected boolean isModified() -
setModified
protected void setModified(boolean b)
-