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 classADUsrRole.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddOperationMode(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.voidcopyRoleExecutionDlg(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_CopyRoleExecutionDlgInitOutgetCopyRoleExecutionDlgInit(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.ADModelgetModel()intgetOperationModeMask()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.booleanhasAnnotationMode()Returns true, if the current object has annotation mode.booleanhasBulkMode()Returns true, if the current object has bulk mode.booleanhasChangeSetMode()Returns true, if the current object has viewing change logs mode.booleanhasComparingModelsMode()Returns true, if the current object has comparing models mode.booleanhasConfigMode()Returns true, if the current object has configuration mode.booleanhasDBConnectMode()Returns true, if the current object has db connect mode.booleanhasDeletingChangeSetMode()Returns true, if the current object has deleting change sets mode.booleanhasDependencyEditorMode()Returns true, if the current object has dependency editor mode.booleanhasEditApplConfMode()Returns true, if the current object has editing application configuration mode.booleanhasExportingModelsMode()Returns true, if the current object has exporting models mode.booleanhasLabelMode()Returns true, if the current object has label mode.booleanhasNoDBDeletionMode()Returns true, if the current object has no right to delete in databases.booleanhasOperationMode(K_OPERATIONMODE kind)Returns true, if the current object's privileges matches the argument kind.booleanhasSectionMode()Returns true, if the current object has section mode.booleanhasTranslationMode()Returns true, if the current object has translation mode.booleanhasVersionMode()Returns true, if the current object has version mode.voidmodifyAccess(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveAccess, boolean recursive)Modifies the given elements' role access.voidmodifyRead(java.util.List<? extends ADAccessAble> seqAccessAble, boolean giveRead)Modifies the given elements' role read permission.voidremoveOperationMode(K_OPERATIONMODE item)Removes 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.voidsetDependencyEditorMode(boolean value)Set the value of Info HasDependencyEditorMode.voidsetEditApplConfMode(boolean value)Set the value of Info HasEditApplConfMode.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.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, 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, SrvErrorExceptionReturns the current object's privileges as a mask.- Throws:
InoNetExceptionSrvErrorException
-
setOperationModeMask
void setOperationModeMask(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut OperationModeMask.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
hasConfigMode
boolean hasConfigMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has configuration mode.- Throws:
InoNetExceptionSrvErrorException
-
setConfigMode
void setConfigMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasConfigMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasLabelMode
boolean hasLabelMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has label mode.- Throws:
InoNetExceptionSrvErrorException
-
setLabelMode
void setLabelMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasLabelMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasVersionMode
boolean hasVersionMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has version mode.- Throws:
InoNetExceptionSrvErrorException
-
setVersionMode
void setVersionMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasVersionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasAnnotationMode
boolean hasAnnotationMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has annotation mode.- Throws:
InoNetExceptionSrvErrorException
-
setAnnotationMode
void setAnnotationMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasAnnotationMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasChangeSetMode
boolean hasChangeSetMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has viewing change logs mode.- Throws:
InoNetExceptionSrvErrorException
-
setChangeSetMode
void setChangeSetMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasChangeSetMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasDeletingChangeSetMode
boolean hasDeletingChangeSetMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has deleting change sets mode.- Throws:
InoNetExceptionSrvErrorException
-
setDeletingChangeSetMode
void setDeletingChangeSetMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasDeletingChangeSetMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasTranslationMode
boolean hasTranslationMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has translation mode.- Throws:
InoNetExceptionSrvErrorException
-
setTranslationMode
void setTranslationMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasTranslationMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasSectionMode
boolean hasSectionMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has section mode.- Throws:
InoNetExceptionSrvErrorException
-
setSectionMode
void setSectionMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasSectionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasDBConnectMode
boolean hasDBConnectMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has db connect mode.- Throws:
InoNetExceptionSrvErrorException
-
setDBConnectMode
void setDBConnectMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasDBConnectMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasNoDBDeletionMode
boolean hasNoDBDeletionMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has no right to delete in databases.- Throws:
InoNetExceptionSrvErrorException
-
setNoDBDeletionMode
void setNoDBDeletionMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasNoDBDeletionMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasBulkMode
boolean hasBulkMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has bulk mode.- Throws:
InoNetExceptionSrvErrorException
-
setBulkMode
void setBulkMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasBulkMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasComparingModelsMode
boolean hasComparingModelsMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has comparing models mode.- Throws:
InoNetExceptionSrvErrorException
-
setComparingModelsMode
void setComparingModelsMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasComparingModelsMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasDependencyEditorMode
boolean hasDependencyEditorMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has dependency editor mode.- Throws:
InoNetExceptionSrvErrorException
-
setDependencyEditorMode
void setDependencyEditorMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasDependencyEditorMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasExportingModelsMode
boolean hasExportingModelsMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has exporting models mode.- Throws:
InoNetExceptionSrvErrorException
-
setExportingModelsMode
void setExportingModelsMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasExportingModelsMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasEditApplConfMode
boolean hasEditApplConfMode() throws InoNetException, SrvErrorExceptionReturns true, if the current object has editing application configuration mode.- Throws:
InoNetExceptionSrvErrorException
-
setEditApplConfMode
void setEditApplConfMode(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Info HasEditApplConfMode.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException- 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:
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
void addOperationMode(K_OPERATIONMODE item) throws InoNetException, SrvErrorException
Adds the privilege to the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
removeOperationMode
void removeOperationMode(K_OPERATIONMODE item) throws InoNetException, SrvErrorException
Removes the privilege from the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
getMdlUser
java.util.List<ADMdlUser> getMdlUser() throws InoNetException, SrvErrorException
Returns the model users which are assigned to the current object.- Throws:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
getLogin
java.util.List<ADLogin> getLogin() throws InoNetException, SrvErrorException
Returns the logins that use the current object.- Throws:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
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:
InoNetExceptionSrvErrorException
-
getModel
ADModel getModel() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
-