Interface ADUsrRole
-
- All Superinterfaces:
ADClientAble
,ADM2AttrModifyAble
,ELContainerAble
,ELContAsgnAble
,ELDeleteAble
,ELElement
,ELNamedElement
,ELNamespaceAsgnAble
,ELObject
,ELUUIDAble
public interface ADUsrRole extends ELContainerAble, ELNamespaceAsgnAble, ADClientAble
Roles are used for access and execution right. Getting these right a model user has to be assigned tho the role.- See Also:
ADUsrRoleHelper
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ADUsrRole.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOperationMode(K_OPERATIONMODE item)
Adds the privilege to the current object.java.util.List<MMRoleExecution>
assignExecuteAble(MMProfile ohProfile, MM2Class ohClass, java.util.List<? extends ADExecuteAble> seqOh)
Assigns a list of executable elements to this user role.void
copyRoleExecutionDlg(MMProfile ohProfile, MMProfile ohSrcProfile, ADUsrRole ohSrcRole, boolean copyAll, java.util.List<? extends ADExecuteAble> seqExec)
<T extends ADAccessAble>
java.util.List<T>getAccessAble(java.lang.Class<T> returnType)
Returns the elements which can be accessed by the current object.ARG_CopyRoleExecutionDlgInitOut
getCopyRoleExecutionDlgInit(MMProfile ohProfile)
Fills the dialog for the copy of execution rights.<T extends ADExecuteAble>
java.util.List<T>getExecuteAble(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)
Return all executeable elements the the current object is allowed to execute.java.util.List<ADLogin>
getLogin()
Returns the logins that use the current object.java.util.List<ADMdlUser>
getMdlUser()
Returns the model users which are assigned to the current object.java.util.List<ADMdlUser>
getMdlUserByPattern(java.lang.String pattern, K_CONTROL_OPTION... behaviourFlags)
Returns the users which are assigned to the current object.ADModel
getModel()
int
getOperationModeMask()
Returns the current object's privileges as a mask.<T extends ADAccessAble>
java.util.List<T>getReadAble(java.lang.Class<T> returnType)
Returns the elements which cannot be read by the current object.java.util.List<MMRoleExecution>
getRoleExecution(K_CONTROL_OPTION... behaviourFlags)
Returns role executions from the current object.boolean
hasAnnotationMode()
Returns true, if the current object has annotation mode.boolean
hasBulkMode()
Returns true, if the current object has bulk mode.boolean
hasChangeSetMode()
Returns true, if the current object has viewing change logs mode.boolean
hasComparingModelsMode()
Returns true, if the current object has comparing models mode.boolean
hasConfigMode()
Returns true, if the current object has configuration mode.boolean
hasDBConnectMode()
Returns true, if the current object has db connect mode.boolean
hasDeletingChangeSetMode()
Returns true, if the current object has deleting change sets mode.boolean
hasDependencyEditorMode()
Returns true, if the current object has dependency editor mode.boolean
hasEditApplConfMode()
Returns true, if the current object has editing application configuration mode.boolean
hasExportingModelsMode()
Returns true, if the current object has exporting models mode.boolean
hasLabelMode()
Returns true, if the current object has label mode.boolean
hasNoDBDeletionMode()
Returns true, if the current object has no right to delete in databases.boolean
hasOperationMode(K_OPERATIONMODE kind)
Returns true, if the current object's privileges matches the argument kind.boolean
hasSectionMode()
Returns true, if the current object has section mode.boolean
hasTranslationMode()
Returns true, if the current object has translation mode.boolean
hasVersionMode()
Returns true, if the current object has version mode.void
modifyAccess(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveAccess, boolean recursive)
Modifies the given elements' role access.void
modifyRead(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveRead)
Modifies the given elements' role read permission.void
removeOperationMode(K_OPERATIONMODE item)
Removes the privilege from the current object.void
setAnnotationMode(boolean value)
Set the value of Info HasAnnotationMode.void
setBulkMode(boolean value)
Set the value of Info HasBulkMode.void
setChangeSetMode(boolean value)
Set the value of Info HasChangeSetMode.void
setComparingModelsMode(boolean value)
Set the value of Info HasComparingModelsMode.void
setConfigMode(boolean value)
Set the value of Info HasConfigMode.void
setDBConnectMode(boolean value)
Set the value of Info HasDBConnectMode.void
setDeletingChangeSetMode(boolean value)
Set the value of Info HasDeletingChangeSetMode.void
setDependencyEditorMode(boolean value)
Set the value of Info HasDependencyEditorMode.void
setEditApplConfMode(boolean value)
Set the value of Info HasEditApplConfMode.void
setExportingModelsMode(boolean value)
Set the value of Info HasExportingModelsMode.void
setLabelMode(boolean value)
Set the value of Info HasLabelMode.void
setNoDBDeletionMode(boolean value)
Set the value of Info HasNoDBDeletionMode.void
setOperationModeMask(int value)
Set the value of Attribut OperationModeMask.void
setSectionMode(boolean value)
Set the value of Info HasSectionMode.void
setTranslationMode(boolean value)
Set the value of Info HasTranslationMode.void
setVersionMode(boolean value)
Set the value of Info HasVersionMode.-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDia
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContents
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKind
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibility
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
-
-
-
Method Detail
-
getOperationModeMask
int getOperationModeMask() throws InoNetException, SrvErrorException
Returns the current object's privileges as a mask.- Throws:
InoNetException
SrvErrorException
-
setOperationModeMask
void setOperationModeMask(int value) throws InoNetException, SrvErrorException
Set the value of Attribut OperationModeMask.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasOperationMode
boolean hasOperationMode(K_OPERATIONMODE kind) throws InoNetException, SrvErrorException
Returns true, if the current object's privileges matches the argument kind.- Parameters:
kind
- A value of type K_OPERATIONMODE that controls the behaviour of the underlying method. (see description)- Throws:
InoNetException
SrvErrorException
-
hasConfigMode
boolean hasConfigMode() throws InoNetException, SrvErrorException
Returns true, if the current object has configuration mode.- Throws:
InoNetException
SrvErrorException
-
setConfigMode
void setConfigMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasConfigMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasLabelMode
boolean hasLabelMode() throws InoNetException, SrvErrorException
Returns true, if the current object has label mode.- Throws:
InoNetException
SrvErrorException
-
setLabelMode
void setLabelMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasLabelMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasVersionMode
boolean hasVersionMode() throws InoNetException, SrvErrorException
Returns true, if the current object has version mode.- Throws:
InoNetException
SrvErrorException
-
setVersionMode
void setVersionMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasVersionMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasAnnotationMode
boolean hasAnnotationMode() throws InoNetException, SrvErrorException
Returns true, if the current object has annotation mode.- Throws:
InoNetException
SrvErrorException
-
setAnnotationMode
void setAnnotationMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasAnnotationMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasChangeSetMode
boolean hasChangeSetMode() throws InoNetException, SrvErrorException
Returns true, if the current object has viewing change logs mode.- Throws:
InoNetException
SrvErrorException
-
setChangeSetMode
void setChangeSetMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasChangeSetMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasDeletingChangeSetMode
boolean hasDeletingChangeSetMode() throws InoNetException, SrvErrorException
Returns true, if the current object has deleting change sets mode.- Throws:
InoNetException
SrvErrorException
-
setDeletingChangeSetMode
void setDeletingChangeSetMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasDeletingChangeSetMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasTranslationMode
boolean hasTranslationMode() throws InoNetException, SrvErrorException
Returns true, if the current object has translation mode.- Throws:
InoNetException
SrvErrorException
-
setTranslationMode
void setTranslationMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasTranslationMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasSectionMode
boolean hasSectionMode() throws InoNetException, SrvErrorException
Returns true, if the current object has section mode.- Throws:
InoNetException
SrvErrorException
-
setSectionMode
void setSectionMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasSectionMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasDBConnectMode
boolean hasDBConnectMode() throws InoNetException, SrvErrorException
Returns true, if the current object has db connect mode.- Throws:
InoNetException
SrvErrorException
-
setDBConnectMode
void setDBConnectMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasDBConnectMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasNoDBDeletionMode
boolean hasNoDBDeletionMode() throws InoNetException, SrvErrorException
Returns true, if the current object has no right to delete in databases.- Throws:
InoNetException
SrvErrorException
-
setNoDBDeletionMode
void setNoDBDeletionMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasNoDBDeletionMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasBulkMode
boolean hasBulkMode() throws InoNetException, SrvErrorException
Returns true, if the current object has bulk mode.- Throws:
InoNetException
SrvErrorException
-
setBulkMode
void setBulkMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasBulkMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasComparingModelsMode
boolean hasComparingModelsMode() throws InoNetException, SrvErrorException
Returns true, if the current object has comparing models mode.- Throws:
InoNetException
SrvErrorException
-
setComparingModelsMode
void setComparingModelsMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasComparingModelsMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasDependencyEditorMode
boolean hasDependencyEditorMode() throws InoNetException, SrvErrorException
Returns true, if the current object has dependency editor mode.- Throws:
InoNetException
SrvErrorException
-
setDependencyEditorMode
void setDependencyEditorMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasDependencyEditorMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasExportingModelsMode
boolean hasExportingModelsMode() throws InoNetException, SrvErrorException
Returns true, if the current object has exporting models mode.- Throws:
InoNetException
SrvErrorException
-
setExportingModelsMode
void setExportingModelsMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasExportingModelsMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
hasEditApplConfMode
boolean hasEditApplConfMode() throws InoNetException, SrvErrorException
Returns true, if the current object has editing application configuration mode.- Throws:
InoNetException
SrvErrorException
-
setEditApplConfMode
void setEditApplConfMode(boolean value) throws InoNetException, SrvErrorException
Set the value of Info HasEditApplConfMode.- Parameters:
value
- The value to be set.- Throws:
InoNetException
SrvErrorException
-
getMdlUserByPattern
java.util.List<ADMdlUser> getMdlUserByPattern(java.lang.String pattern, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
Returns the users which are assigned to the current object. It is possible to restrict the result by using the argument pattern.- Parameters:
pattern
- A string pattern. This parameter is optional. (Its value can be given as null.)behaviourFlags
- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetException
SrvErrorException
- Sorted:
-
getExecuteAble
<T extends ADExecuteAble> java.util.List<T> getExecuteAble(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
Return all executeable elements the the current object is allowed to execute.- Parameters:
returnType
- Specifies the type of elements to be returned.behaviourFlags
- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetException
SrvErrorException
-
getCopyRoleExecutionDlgInit
ARG_CopyRoleExecutionDlgInitOut getCopyRoleExecutionDlgInit(MMProfile ohProfile) throws InoNetException, SrvErrorException
Fills the dialog for the copy of execution rights. This user role and the profile specify the target for the execution right. The dialog shows pairs of user roles and profiles which contain the source execution rights.- Parameters:
ohProfile
- profile of the selected stereotype- Throws:
InoNetException
SrvErrorException
-
addOperationMode
void addOperationMode(K_OPERATIONMODE item) throws InoNetException, SrvErrorException
Adds the privilege to the current object.- Parameters:
item
-- Throws:
InoNetException
SrvErrorException
-
assignExecuteAble
java.util.List<MMRoleExecution> assignExecuteAble(MMProfile ohProfile, MM2Class ohClass, java.util.List<? extends ADExecuteAble> seqOh) throws InoNetException, SrvErrorException
Assigns a list of executable elements to this user role.- Parameters:
ohProfile
- profile of the configurationohClass
- meta class of the execute able elementsseqOh
- list of execute able elements- Throws:
InoNetException
SrvErrorException
-
copyRoleExecutionDlg
void copyRoleExecutionDlg(MMProfile ohProfile, MMProfile ohSrcProfile, ADUsrRole ohSrcRole, boolean copyAll, java.util.List<? extends ADExecuteAble> seqExec) throws InoNetException, SrvErrorException
Copies the execution right from the specified user role to this user role. Each user role needs a profile to specify the context.- Parameters:
ohProfile
- profile of the selected user roleohSrcProfile
- profile of the user role from which the execution rights are copiedohSrcRole
- user role from which the execution rights are copiedcopyAll
- isTrue/isFalse means copy all role excutions/copy only the specified execution rightsseqExec
- list of execution rights which have to be copied- Throws:
InoNetException
SrvErrorException
-
modifyAccess
void modifyAccess(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveAccess, boolean recursive) throws InoNetException, SrvErrorException
Modifies the given elements' role access.- Parameters:
seqAccessAble
- sequence of accessable elementsgiveAccess
- switch access on or offrecursive
- set recursive for all sons- Throws:
InoNetException
SrvErrorException
-
modifyRead
void modifyRead(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveRead) throws InoNetException, SrvErrorException
Modifies the given elements' role read permission.- Parameters:
seqAccessAble
- sequence of accessable elementsgiveRead
- switch read permission on or off- Throws:
InoNetException
SrvErrorException
-
removeOperationMode
void removeOperationMode(K_OPERATIONMODE item) throws InoNetException, SrvErrorException
Removes the privilege from the current object.- Parameters:
item
-- Throws:
InoNetException
SrvErrorException
-
getMdlUser
java.util.List<ADMdlUser> getMdlUser() throws InoNetException, SrvErrorException
Returns the model users which are assigned to the current object.- Throws:
InoNetException
SrvErrorException
-
getAccessAble
<T extends ADAccessAble> java.util.List<T> getAccessAble(java.lang.Class<T> returnType) throws InoNetException, SrvErrorException
Returns the elements which can be accessed by the current object.- Parameters:
returnType
- Specifies the type of elements to be returned.- Throws:
InoNetException
SrvErrorException
-
getLogin
java.util.List<ADLogin> getLogin() throws InoNetException, SrvErrorException
Returns the logins that use the current object.- Throws:
InoNetException
SrvErrorException
-
getRoleExecution
java.util.List<MMRoleExecution> getRoleExecution(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
Returns role executions from the current object.- Parameters:
behaviourFlags
- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetException
SrvErrorException
-
getReadAble
<T extends ADAccessAble> java.util.List<T> getReadAble(java.lang.Class<T> returnType) throws InoNetException, SrvErrorException
Returns the elements which cannot be read by the current object.- Parameters:
returnType
- Specifies the type of elements to be returned.- Throws:
InoNetException
SrvErrorException
-
getModel
ADModel getModel() throws InoNetException, SrvErrorException
- Throws:
InoNetException
SrvErrorException
-
-