Interface ADUsrRole
- All Superinterfaces:
ADClientAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELNamedElement,ELNamespaceAsgnAble,ELObject,ELUUIDAble
Roles are used for access and execution right. Getting these right a model user has to be assigned tho the role.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the privilege to the current object.assignExecuteAble(MMProfile ohProfile, MM2Class ohClass, List<? extends ADExecuteAble> seqOh) Assigns a list of executable elements to this user role.voidcopyRoleExecutionDlg(MMProfile ohProfile, MMProfile ohSrcProfile, ADUsrRole ohSrcRole, boolean copyAll, List<? extends ADExecuteAble> seqExec) <T extends ADAccessAble>
List<T> getAccessAble(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Returns the elements which can be accessed by the current object.getCopyRoleExecutionDlgInit(MMProfile ohProfile) Fills the dialog for the copy of execution rights.<T extends ADExecuteAble>
List<T> getExecuteAble(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Return all executeable elements the the current object is allowed to execute.getLogin()Returns the logins that use the current object.Returns the model users which are assigned to the current object.getMdlUserByPattern(String pattern, K_CONTROL_OPTION... behaviourFlags) Returns the users which are assigned to the current object.getModel()intReturns the current object's privileges as a mask.<T extends ADAccessAble>
List<T> getReadAble(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Returns the elements which cannot be read by the current object.Returns role executions from the current object.booleanReturns true, if the current object has privilege 'Edit Annotations'.booleanReturns true, if the current object has privilege 'Use Bulk Commands'.booleanReturns true, if the current object has privilege 'View Change Logs'.booleanReturns true, if the current object has privilege 'Compare Models'.booleanReturns true, if the current object has privilege 'Configure'.booleanReturns true, if the current object has privilege 'Configure Database Connections'.booleanReturns true, if the current object has privilege 'Delete Change Sets'.booleanReturns true, if the current object has privilege 'Edit Model-Wide Configurations'.booleanReturns true, if the current object has privilege 'Edit Hyphenation'.booleanReturns true, if the current object has privilege 'Export Models'.booleanReturns true, if the current object has privilege 'Set Labels'.booleanReturns true, if the current object has privilege 'Do Not Delete In Databases'.booleanReturns true, if the current object has privilege 'Do Not Delete Elements'.booleanReturns true, if the current object's privileges matches the argument kind.booleanReturns true, if the current object has privilege 'Use Sections'.booleanReturns true, if the current object has privilege 'Translate Model Elements'.booleanReturns true, if the current object has privilege 'Use Model Fragments'.voidmodifyAccess(List<? extends ADAccessAble> seqAccessAble, boolean giveAccess, boolean recursive) Modifies the given elements' role access.voidmodifyRead(List<? extends ADAccessAble> seqAccessAble, boolean giveRead) Modifies the given elements' role read permission.voidRemoves the privilege from the current object.voidsetAnnotationMode(boolean value) Set the value of Info HasAnnotationMode.voidsetBulkMode(boolean value) Set the value of Info HasBulkMode.voidsetChangeSetMode(boolean value) Set the value of Info HasChangeSetMode.voidsetComparingModelsMode(boolean value) Set the value of Info HasComparingModelsMode.voidsetConfigMode(boolean value) Set the value of Info HasConfigMode.voidsetDBConnectMode(boolean value) Set the value of Info HasDBConnectMode.voidsetDeletingChangeSetMode(boolean value) Set the value of Info HasDeletingChangeSetMode.voidsetEditApplConfMode(boolean value) Set the value of Info HasEditApplConfMode.voidsetEditHyphenationMode(boolean value) Set the value of Info HasEditHyphenationMode.voidsetExportingModelsMode(boolean value) Set the value of Info HasExportingModelsMode.voidsetLabelMode(boolean value) Set the value of Info HasLabelMode.voidsetNoDBDeletionMode(boolean value) Set the value of Info HasNoDBDeletionMode.voidsetNoElementDeletionMode(boolean value) Set the value of Info HasNoElementDeletionMode.voidsetOperationModeMask(int value) Set the value of Attribut OperationModeMask.voidsetSectionMode(boolean value) Set the value of Info HasSectionMode.voidsetTranslationMode(boolean value) Set the value of Info HasTranslationMode.voidsetVersionMode(boolean value) Set the value of Info HasVersionMode.Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
deleteMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getNotificationElement, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnitMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKindMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibilityMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
Method Details
-
getOperationModeMask
Returns the current object's privileges as a mask.- Throws:
InoNetExceptionSrvErrorException
-
setOperationModeMask
Set the value of Attribut OperationModeMask.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasOperationMode
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:
InoNetExceptionSrvErrorException
-
hasConfigMode
Returns true, if the current object has privilege 'Configure'.- Throws:
InoNetExceptionSrvErrorException
-
setConfigMode
Set the value of Info HasConfigMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasLabelMode
Returns true, if the current object has privilege 'Set Labels'.- Throws:
InoNetExceptionSrvErrorException
-
setLabelMode
Set the value of Info HasLabelMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasVersionMode
Returns true, if the current object has privilege 'Use Model Fragments'.- Throws:
InoNetExceptionSrvErrorException
-
setVersionMode
Set the value of Info HasVersionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasAnnotationMode
Returns true, if the current object has privilege 'Edit Annotations'.- Throws:
InoNetExceptionSrvErrorException
-
setAnnotationMode
Set the value of Info HasAnnotationMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasChangeSetMode
Returns true, if the current object has privilege 'View Change Logs'.- Throws:
InoNetExceptionSrvErrorException
-
setChangeSetMode
Set the value of Info HasChangeSetMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasDeletingChangeSetMode
Returns true, if the current object has privilege 'Delete Change Sets'.- Throws:
InoNetExceptionSrvErrorException
-
setDeletingChangeSetMode
Set the value of Info HasDeletingChangeSetMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasTranslationMode
Returns true, if the current object has privilege 'Translate Model Elements'.- Throws:
InoNetExceptionSrvErrorException
-
setTranslationMode
Set the value of Info HasTranslationMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasSectionMode
Returns true, if the current object has privilege 'Use Sections'.- Throws:
InoNetExceptionSrvErrorException
-
setSectionMode
Set the value of Info HasSectionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasDBConnectMode
Returns true, if the current object has privilege 'Configure Database Connections'.- Throws:
InoNetExceptionSrvErrorException
-
setDBConnectMode
Set the value of Info HasDBConnectMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasNoDBDeletionMode
Returns true, if the current object has privilege 'Do Not Delete In Databases'.- Throws:
InoNetExceptionSrvErrorException
-
setNoDBDeletionMode
Set the value of Info HasNoDBDeletionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasBulkMode
Returns true, if the current object has privilege 'Use Bulk Commands'.- Throws:
InoNetExceptionSrvErrorException
-
setBulkMode
Set the value of Info HasBulkMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasComparingModelsMode
Returns true, if the current object has privilege 'Compare Models'.- Throws:
InoNetExceptionSrvErrorException
-
setComparingModelsMode
Set the value of Info HasComparingModelsMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasExportingModelsMode
Returns true, if the current object has privilege 'Export Models'.- Throws:
InoNetExceptionSrvErrorException
-
setExportingModelsMode
Set the value of Info HasExportingModelsMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasEditApplConfMode
Returns true, if the current object has privilege 'Edit Model-Wide Configurations'.- Throws:
InoNetExceptionSrvErrorException
-
setEditApplConfMode
Set the value of Info HasEditApplConfMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasEditHyphenationMode
Returns true, if the current object has privilege 'Edit Hyphenation'.- Throws:
InoNetExceptionSrvErrorException
-
setEditHyphenationMode
Set the value of Info HasEditHyphenationMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasNoElementDeletionMode
Returns true, if the current object has privilege 'Do Not Delete Elements'.- Throws:
InoNetExceptionSrvErrorException
-
setNoElementDeletionMode
Set the value of Info HasNoElementDeletionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMdlUserByPattern
List<ADMdlUser> getMdlUserByPattern(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:
InoNetExceptionSrvErrorException- Sorted:
-
getExecuteAble
<T extends ADExecuteAble> List<T> getExecuteAble(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:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
addOperationMode
Adds the privilege to the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
assignExecuteAble
List<MMRoleExecution> assignExecuteAble(MMProfile ohProfile, MM2Class ohClass, 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:
InoNetExceptionSrvErrorException
-
copyRoleExecutionDlg
void copyRoleExecutionDlg(MMProfile ohProfile, MMProfile ohSrcProfile, ADUsrRole ohSrcRole, boolean copyAll, 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:
InoNetExceptionSrvErrorException
-
modifyAccess
void modifyAccess(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:
InoNetExceptionSrvErrorException
-
modifyRead
void modifyRead(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:
InoNetExceptionSrvErrorException
-
removeOperationMode
Removes the privilege from the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
getMdlUser
Returns the model users which are assigned to the current object.- Throws:
InoNetExceptionSrvErrorException
-
getAccessAble
<T extends ADAccessAble> List<T> getAccessAble(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException Returns the elements which can be accessed by the current object.- 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:
InoNetExceptionSrvErrorException
-
getLogin
Returns the logins that use the current object.- Throws:
InoNetExceptionSrvErrorException
-
getRoleExecution
Returns role executions from the current object.- Throws:
InoNetExceptionSrvErrorException
-
getReadAble
<T extends ADAccessAble> List<T> getReadAble(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException Returns the elements which cannot be read by the current object.- 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:
InoNetExceptionSrvErrorException
-
getModel
- Throws:
InoNetExceptionSrvErrorException
-