|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectde.mid.innovator.srv.Model
public abstract class Model
The class represents an Innovator UML 2 model. It supports basic functions like login and logout, keeps the association to its repository server and provides the entry point to the ADModel.
| Field Summary | |
|---|---|
protected SrvLogin |
fLogin
|
protected String |
fModelName
|
protected K_ADMODEL |
fModelType
|
protected RepositoryServer |
fRepositoryServer
|
| Constructor Summary | |
|---|---|
protected |
Model(RepositoryServer server,
String name,
K_ADMODEL modelType)
protected constructor for internal use only pleas use RepositoryServer.createModel(String, K_ADMODEL, String, String, String, List)
to create a new Innovator model. |
| Method Summary | |
|---|---|
ExcellenceModel |
asExcellenceModel()
Converts this model instance to an ExcellenceModel. |
abstract void |
delete(String pwd)
Deletes a model from a repository server. |
boolean |
equals(SrvContext obj)
|
protected List<String> |
getLicUserRoleList(InoUser inoUser)
|
SrvLogin |
getLogin()
|
String |
getModelName()
Gets the name of the model. |
K_ADMODEL |
getModelType()
|
RepositoryServer |
getRepositoryServer()
Gets the repository server instance which the model corresponds to. |
SrvConnection |
getSrvConnection()
|
protected byte[] |
getSSOUserCookie(InoUser inoUser)
|
protected List<InoUser> |
getSSOUsers()
|
abstract List<String> |
getUserRoleList(InoUser inoUser)
Fetch the possible roles |
abstract List<InoUser> |
getUsers()
Gets the list of available users. |
boolean |
hasLogin()
Checks if the model contains any kind of login. |
protected boolean |
isSingleSignOn()
|
List<String> |
listUserRoles(String userName)
Deprecated. |
abstract void |
loginModelAdmin(String aUserName,
String pwd)
Login as model administrator with name and password. |
abstract void |
loginModelGuest(String pwd)
Login as model guest with password. |
void |
loginUser(String role)
Deprecated. |
abstract void |
loginUser(String aUserName,
String aCleartextPassword,
String role)
Login as normal user with name and password. |
abstract void |
logout()
Logout any user from the model. |
protected void |
registerModelAtLicServer()
|
abstract boolean |
tryReLogin(String aUserName)
Checks if the given user has a login with the same display. |
protected void |
unregisterModelAtLicServer()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SrvLogin fLogin
protected String fModelName
protected K_ADMODEL fModelType
protected RepositoryServer fRepositoryServer
| Constructor Detail |
|---|
protected Model(RepositoryServer server,
String name,
K_ADMODEL modelType)
RepositoryServer.createModel(String, K_ADMODEL, String, String, String, List)
to create a new Innovator model.
server - the repository servername - NamemodelType - type of model| Method Detail |
|---|
public ExcellenceModel asExcellenceModel()
ExcellenceModel or null
public abstract void delete(String pwd)
throws InoNetException,
SrvErrorException
RepositoryServer.repositoryAdminLogin(String)
pwd - the model's administrator password
InoNetException
SrvErrorExceptionpublic boolean equals(SrvContext obj)
equals in interface SrvContext
protected List<String> getLicUserRoleList(InoUser inoUser)
throws InoNetException,
SrvErrorException
InoNetException
SrvErrorExceptionpublic SrvLogin getLogin()
getLogin in interface SrvContextpublic String getModelName()
public K_ADMODEL getModelType()
public RepositoryServer getRepositoryServer()
public SrvConnection getSrvConnection()
getSrvConnection in interface SrvContext
protected byte[] getSSOUserCookie(InoUser inoUser)
throws InoNetException
InoNetException
protected List<InoUser> getSSOUsers()
throws InoNetException
InoNetException
public abstract List<String> getUserRoleList(InoUser inoUser)
throws InoNetException,
SrvErrorException
inoUser - the Innovator user
InoNetException
SrvErrorException
public abstract List<InoUser> getUsers()
throws InoNetException,
SrvErrorException
InoNetException
SrvErrorExceptionpublic boolean hasLogin()
protected boolean isSingleSignOn()
throws InoNetException
InoNetException
@Deprecated
public List<String> listUserRoles(String userName)
throws InoNetException,
SrvErrorException
getUserRoleList(InoUser)
InoNetException
SrvErrorException
public abstract void loginModelAdmin(String aUserName,
String pwd)
throws InoNetException,
SrvErrorException
SystemUtils.getSystemUser();
aUserName - a user name as string or nullpwd - the administrator's password
InoNetException
SrvErrorException
public abstract void loginModelGuest(String pwd)
throws InoNetException,
SrvErrorException
pwd - the administrator's password
InoNetException
SrvErrorException
@Deprecated
public void loginUser(String role)
throws InoNetException,
SrvErrorException
InoNetException
SrvErrorException
public abstract void loginUser(String aUserName,
String aCleartextPassword,
String role)
throws InoNetException,
SrvErrorException
SystemUtils.getSystemUser();
aUserName - the user name or null. If no name is given, the system user
name is used.aCleartextPassword - a clear text password for this user or nullrole - the user's role or null. If no role is given, the user's role
of the last successful login is used.
InoNetException
SrvErrorException
public abstract void logout()
throws InoNetException,
SrvErrorException
InoNetException
SrvErrorException
protected void registerModelAtLicServer()
throws InoNetException
InoNetException
public abstract boolean tryReLogin(String aUserName)
throws InoNetException,
SrvErrorException
aUserName - the user name to search for
InoNetException
SrvErrorException
protected void unregisterModelAtLicServer()
throws InoNetException
InoNetException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||