Interface ADLogin
-
- All Superinterfaces:
ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELUUIDAble
public interface ADLogin extends ELContainerAble, ELContAsgnAble
Represents a single login for a user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classADLogin.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.DategetAccessTime()Returns the recent access time of the current object.java.lang.StringgetDisplay()Returns the display's name for the current object.java.lang.StringgetHost()Returns the host's name for the current object.MM2LocalegetLocale()ARG_AskgetLockMessage(java.util.List<? extends ELElement> seq)Returns the lock messages of all specified elements.java.util.List<ARG_LockRecursiveEntry>getLockRecursiveCheck(java.util.List<? extends ADClientAble> seqSel)Checks whether all selected elements may be locked recursively.ADLoginAblegetLoginAble()The element that owns the current object.ARG_LoginCachegetLoginCache()Gets important information of the login all at once.K_LOGSTATUSgetLogStatus()Returns the current object's login status.ADMdlAdmingetMdlAdmin()The model administrator of the current object.ADMdlUsergetMdlUser()The model user of the current object.java.util.List<ADLock>getOwnedLock(K_CONTROL_OPTION... behaviourFlags)The locks which are owned by the current object.java.util.List<ADUsrRole>getPossibleRole(K_CONTROL_OPTION... behaviourFlags)Returns all roles available for the current object.ADRepAdmingetRepAdmin()The the current object's repository administrator.MESectiongetRestrictingSection()java.lang.StringgetRoleName()Returns the current role's name for the current object.ARG_UndoRedoAbleOutgetUndoRedoAble()Is undo and redo possible.<T extends ADClientAble>
java.util.List<T>getUndoRedoDeletedElements(java.lang.Class<T> returnType, boolean item)Returns a list of all elements which will be deleted by the following undo or redo command.booleangetUseAllRoles()Returns true, if all possible roles are evaluated as execution rights of the current object.ADUsrRolegetUsrRole()Returns the role of the current object.booleanhasOperationMode(K_OPERATIONMODE kind)Returns true, if the current object's user privileges match the argument kind.booleanhasReadRestriction()Returns false, if the current object can read all elements of the current model.booleanisAdmin()Returns true, if the current object has administrator status.booleanisInactive()Returns true, if the current object is inactive.booleanisReadOnlyLogin()Returns true, if the current role of the current object has no access to any element and no execution right to any menu item.booleanisSuperUser()Returns true, if the current object is logged-in as a super user.voidlock(java.util.List<? extends ELElement> seq)If no selection is made, it locks all elements possible for the login.voidlockRecursive(java.util.List<? extends ADClientAble> seqSel)Locks all selected elements recursively.voidmodifyIgnoreConfiguration(boolean item)Modifies the ignore configuration flag for the current object.voidmodifyPassword(java.lang.String oldPass, java.lang.String newPass)Modifies the password for the current object.voidmodifyRole(java.lang.String role)Changes the role for the current object.ARG_Undoredo()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.ARG_Undoundo()Reverts the effects of the command most recently executed by this login.voidunlock(java.util.List<? extends ELElement> seq)If no selection is made, it removes all element locks for the current object.voidunlockRecursive(java.util.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, 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.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
-
isSuperUser
boolean isSuperUser() throws InoNetException, SrvErrorExceptionReturns true, if the current object is logged-in as a super user.- Throws:
InoNetExceptionSrvErrorException
-
getAccessTime
java.util.Date getAccessTime() throws InoNetException, SrvErrorExceptionReturns the recent access time of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getHost
java.lang.String getHost() throws InoNetException, SrvErrorExceptionReturns the host's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
getDisplay
java.lang.String getDisplay() throws InoNetException, SrvErrorExceptionReturns the display's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
getUseAllRoles
boolean getUseAllRoles() throws InoNetException, SrvErrorExceptionReturns true, if all possible roles are evaluated as execution rights of the current object. Otherwise only the active role is evaluated.- Throws:
InoNetExceptionSrvErrorException
-
setUseAllRoles
void setUseAllRoles(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Attribut UseAllRoles.- 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 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
boolean isAdmin() throws InoNetException, SrvErrorExceptionReturns true, if the current object has administrator status.- Throws:
InoNetExceptionSrvErrorException
-
getLogStatus
K_LOGSTATUS getLogStatus() throws InoNetException, SrvErrorException
Returns the current object's login status.- Throws:
InoNetExceptionSrvErrorException
-
getRoleName
java.lang.String getRoleName() throws InoNetException, SrvErrorExceptionReturns the current role's name for the current object.- Throws:
InoNetExceptionSrvErrorException
-
isReadOnlyLogin
boolean isReadOnlyLogin() throws InoNetException, SrvErrorExceptionReturns 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
boolean hasReadRestriction() throws InoNetException, SrvErrorExceptionReturns false, if the current object can read all elements of the current model.- Throws:
InoNetExceptionSrvErrorException
-
isInactive
boolean isInactive() throws InoNetException, SrvErrorExceptionReturns true, if the current object is inactive.- Throws:
InoNetExceptionSrvErrorException
-
getPossibleRole
java.util.List<ADUsrRole> getPossibleRole(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
Returns all roles available for the current object.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getRestrictingSection
MESection getRestrictingSection() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
getUndoRedoAble
ARG_UndoRedoAbleOut getUndoRedoAble() throws InoNetException, SrvErrorException
Is undo and redo possible.- Throws:
InoNetExceptionSrvErrorException
-
getUndoRedoDeletedElements
<T extends ADClientAble> java.util.List<T> getUndoRedoDeletedElements(java.lang.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
-
getLockMessage
ARG_Ask getLockMessage(java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Returns the lock messages of all specified elements.- Parameters:
seq- List of ELElement- Throws:
InoNetExceptionSrvErrorException
-
getLockRecursiveCheck
java.util.List<ARG_LockRecursiveEntry> getLockRecursiveCheck(java.util.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
ARG_LoginCache getLoginCache() throws InoNetException, SrvErrorException
Gets important information of the login all at once.- Throws:
InoNetExceptionSrvErrorException
-
lock
void lock(java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
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
void lockRecursive(java.util.List<? extends ADClientAble> seqSel) throws InoNetException, SrvErrorException
Locks all selected elements recursively.- Parameters:
seqSel- list of elements for recursive lock/unlock command- Throws:
InoNetExceptionSrvErrorException
-
modifyIgnoreConfiguration
void modifyIgnoreConfiguration(boolean item) throws InoNetException, SrvErrorExceptionModifies the ignore configuration flag for the current object.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
modifyPassword
void modifyPassword(java.lang.String oldPass, java.lang.String newPass) throws InoNetException, SrvErrorExceptionModifies the password for the current object.- Parameters:
oldPass- current passwordnewPass- new password- Throws:
InoNetExceptionSrvErrorException
-
modifyRole
void modifyRole(java.lang.String role) throws InoNetException, SrvErrorExceptionChanges the role for the current object.- Parameters:
role- new role- Throws:
InoNetExceptionSrvErrorException
-
redo
ARG_Undo redo() throws InoNetException, SrvErrorException
Reverts the effects of the undo-command most recently executed by this login.- Throws:
InoNetExceptionSrvErrorException
-
setDisplayLocale
void setDisplayLocale(ELElement item) throws InoNetException, SrvErrorException
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
ARG_Undo undo() throws InoNetException, SrvErrorException
Reverts the effects of the command most recently executed by this login.- Throws:
InoNetExceptionSrvErrorException
-
unlock
void unlock(java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
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
void unlockRecursive(java.util.List<? extends ADClientAble> seqSel) throws InoNetException, SrvErrorException
Unlocks all selected elements recursively.- Parameters:
seqSel- list of elements for recursive lock/unlock command- Throws:
InoNetExceptionSrvErrorException
-
getUsrRole
ADUsrRole getUsrRole() throws InoNetException, SrvErrorException
Returns the role of the current object.- Throws:
InoNetExceptionSrvErrorException
-
setUsrRole
void setUsrRole(ADUsrRole value) throws InoNetException, SrvErrorException
Set the value of Foreign Key UsrRole.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedLock
java.util.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
MM2Locale getLocale() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
getLoginAble
ADLoginAble getLoginAble() throws InoNetException, SrvErrorException
The element that owns the current object.- Throws:
InoNetExceptionSrvErrorException
-
getMdlAdmin
ADMdlAdmin getMdlAdmin() throws InoNetException, SrvErrorException
The model administrator of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getMdlUser
ADMdlUser getMdlUser() throws InoNetException, SrvErrorException
The model user of the current object.- Throws:
InoNetExceptionSrvErrorException
-
getRepAdmin
ADRepAdmin getRepAdmin() throws InoNetException, SrvErrorException
The the current object's repository administrator.- Throws:
InoNetExceptionSrvErrorException
-
-