Interface ADLogin
- All Superinterfaces:
ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELUUIDAble
Represents a single login for a user.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the recent access time of the current object.Returns the display's name for the current object.getHost()Returns the host's name for the current object.getLockMessage(List<? extends ELElement> seq) Returns the lock messages of all specified elements.getLockRecursiveCheck(List<? extends ADClientAble> seqSel) Checks whether all selected elements may be locked recursively.The element that owns the current object.Gets important information of the login all at once.Returns the current object's login status.The model administrator of the current object.The SVG generation of the current object.The model user of the current object.getOwnedLock(K_CONTROL_OPTION... behaviourFlags) The locks which are owned by the current object.Returns all roles available for the current object.The the current object's repository administrator.Returns the current role's name for the current object.Is undo and redo possible.<T extends ADClientAble>
List<T> getUndoRedoDeletedElements(Class<T> returnType, boolean item) Returns a list of all elements which will be deleted by the following undo or redo command.getUndoRedoList(int cntMaxUndo, int cntMaxRedo) Returns lists of command names which may be used for undo or redo.booleanReturns true, if all possible roles are evaluated as execution rights of the current object.Returns the role of the current object.booleanReturns true, if the current object's user privileges match the argument kind.booleanReturns false, if the current object can read all elements of the current model.booleanisAdmin()Returns true, if the current object has administrator status.booleanReturns true, if the current object is inactive.booleanReturns true, if the current role of the current object has no access to any element and no execution right to any menu item.booleanReturns true, if the current object is logged-in as a super user.voidIf no selection is made, it locks all elements possible for the login.voidlockRecursive(List<? extends ADClientAble> seqSel) Locks all selected elements recursively.voidmodifyIgnoreConfiguration(boolean item) Modifies the ignore configuration flag for the current object.voidmodifyPassword(String oldPass, String newPass) Modifies the password for the current object.voidmodifyRole(String role) Changes the role for the current object.redo()Reverts the effects of the undo-command most recently executed by this login.voidsetDisplayLocale(ELElement item) Defines theMM2Localewhich is used to display properties and string values in read only mode.voidsetUseAllRoles(boolean value) Set the value of Attribut UseAllRoles.voidsetUsrRole(ADUsrRole value) Set the value of Foreign Key UsrRole.undo()Reverts the effects of the command most recently executed by this login.voidIf no selection is made, it removes all element locks for the current object.voidunlockRecursive(List<? extends ADClientAble> seqSel) Unlocks all selected elements recursively.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, 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.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
-
isSuperUser
Returns true, if the current object is logged-in as a super user.- Throws:
InoNetExceptionSrvErrorException
-
getAccessTime
Returns the recent access time of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getHost
Returns the host's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
getDisplay
Returns the display's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
getUseAllRoles
Returns true, if all possible roles are evaluated as execution rights of the current object. Otherwise only the active role is evaluated.- Throws:
InoNetExceptionSrvErrorException
-
setUseAllRoles
Set the value of Attribut UseAllRoles.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasOperationMode
Returns true, if the current object's user privileges match the argument kind.- Parameters:
kind- A value of type K_OPERATIONMODE that controls the behaviour of the underlying method. (see description)- Throws:
InoNetExceptionSrvErrorException
-
isAdmin
Returns true, if the current object has administrator status.- Throws:
InoNetExceptionSrvErrorException
-
getLogStatus
Returns the current object's login status.- Throws:
InoNetExceptionSrvErrorException
-
getRoleName
Returns the current role's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
isReadOnlyLogin
Returns true, if the current role of the current object has no access to any element and no execution right to any menu item.- Throws:
InoNetExceptionSrvErrorException
-
hasReadRestriction
Returns false, if the current object can read all elements of the current model.- Throws:
InoNetExceptionSrvErrorException
-
isInactive
Returns true, if the current object is inactive.- Throws:
InoNetExceptionSrvErrorException
-
getPossibleRole
Returns all roles available for the current object.- Throws:
InoNetExceptionSrvErrorException
-
getRestrictingSection
- Throws:
InoNetExceptionSrvErrorException
-
getUndoRedoAble
Is undo and redo possible.- Throws:
InoNetExceptionSrvErrorException
-
getUndoRedoDeletedElements
<T extends ADClientAble> List<T> getUndoRedoDeletedElements(Class<T> returnType, boolean item) throws InoNetException, SrvErrorException Returns a list of all elements which will be deleted by the following undo or redo command. The parameter is true, if undo is evaluated.- Parameters:
returnType- Specifies the type of elements to be returned.item-- Throws:
InoNetExceptionSrvErrorException
-
getUndoRedoList
ARG_GetUndoRedoList getUndoRedoList(int cntMaxUndo, int cntMaxRedo) throws InoNetException, SrvErrorException Returns lists of command names which may be used for undo or redo. The parameters may be used to restrict the maximum number of commands. Parameter value 0 returns all commands, value -1 returns none.- Parameters:
cntMaxUndo- maximum of required undo commandscntMaxRedo- maximum of required redo commands- Throws:
InoNetExceptionSrvErrorException
-
getLockMessage
Returns the lock messages of all specified elements.- Parameters:
seq- List of ELElement- Throws:
InoNetExceptionSrvErrorException
-
getLockRecursiveCheck
List<ARG_LockRecursiveEntry> getLockRecursiveCheck(List<? extends ADClientAble> seqSel) throws InoNetException, SrvErrorException Checks whether all selected elements may be locked recursively. The result contains all elements which are not allowed to lock.- Parameters:
seqSel- list of elements for recursive lock/unlock command- Throws:
InoNetExceptionSrvErrorException
-
getLoginCache
Gets important information of the login all at once.- Throws:
InoNetExceptionSrvErrorException
-
lock
If no selection is made, it locks all elements possible for the login. Otherwise, it tries to lock the given selection.- Parameters:
seq- ELElement optional sequence of elements- Throws:
InoNetExceptionSrvErrorException
-
lockRecursive
Locks all selected elements recursively.- Parameters:
seqSel- list of elements for recursive lock/unlock command- Throws:
InoNetExceptionSrvErrorException
-
modifyIgnoreConfiguration
Modifies the ignore configuration flag for the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
modifyPassword
Modifies the password for the current object.- Parameters:
oldPass- current passwordnewPass- new password- Throws:
InoNetExceptionSrvErrorException
-
modifyRole
Changes the role for the current object.- Parameters:
role- new role- Throws:
InoNetExceptionSrvErrorException
-
redo
Reverts the effects of the undo-command most recently executed by this login.- Throws:
InoNetExceptionSrvErrorException
-
setDisplayLocale
Defines theMM2Localewhich is used to display properties and string values in read only mode. If the value is empty the model language is used to display properties.- Parameters:
item- ELElement Optional Element- Throws:
InoNetExceptionSrvErrorException
-
undo
Reverts the effects of the command most recently executed by this login.- Throws:
InoNetExceptionSrvErrorException
-
unlock
If no selection is made, it removes all element locks for the current object. Otherwise, the given selection is unlocked.- Parameters:
seq- ELElement optional sequence of elements- Throws:
InoNetExceptionSrvErrorException
-
unlockRecursive
Unlocks all selected elements recursively.- Parameters:
seqSel- list of elements for recursive lock/unlock command- Throws:
InoNetExceptionSrvErrorException
-
getUsrRole
Returns the role of the current object.- Throws:
InoNetExceptionSrvErrorException
-
setUsrRole
Set the value of Foreign Key UsrRole.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedLock
List<ADLock> getOwnedLock(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The locks which are owned by the current object.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the result may be sorted.
-
getLocale
- Throws:
InoNetExceptionSrvErrorException
-
getLoginAble
The element that owns the current object.- Throws:
InoNetExceptionSrvErrorException
-
getMdlAdmin
The model administrator of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getMdlGeneratorSvg
The SVG generation of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getMdlUser
The model user of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getRepAdmin
The the current object's repository administrator.- Throws:
InoNetExceptionSrvErrorException
-