| |
|
| java.lang.Object de.webman.acl.WMObject de.webman.acl.Login de.webman.acl.Profile
Profile | public class Profile extends Login (Code) | | A profile is a group of users. It may have sub-profiles as well as a parent profile.
version: 1.0 since: 1.0 author: © 2001 Webman AG |
Constructor Summary | |
protected | Profile(LoginDBData data) Provide instantion only to package classes or subclasses. |
Method Summary | |
final public void | addChild(Login child) Associates the given child login with the profile. | final public TKVector | getChildren() Returns all children logins. | final public ObjectFactory | getFactory() Returns the factory of the object. | final public boolean | hasChild(Login login) Checks wether there is an association with the given child login.
Parameters: login - the child login. | final public boolean | isMember(Login login) Checks wether the given login is a member of this profile.
Parameters: login - the login. | final public boolean | isParent(Login login) Checks wether this login object is a parent of the given login object.
Parameters: login - the login object. | final public boolean | isProfile() Checks wether this login object represents a profile. | final public boolean | isUser() Checks wether this login object represents a user. | final public void | removeChild(Login child) Removes the association with the given child login. | final public void | removeChildren() Removes the association with all children logins. |
Profile | protected Profile(LoginDBData data)(Code) | | Provide instantion only to package classes or subclasses.
Parameters: data - the initial profile data. |
addChild | final public void addChild(Login child) throws TKException(Code) | | Associates the given child login with the profile.
Parameters: child - the child login. exception: com.teamkonzept.lib.TKException - if an error occured during login retrievalor the given child login is a parent of the profile. |
hasChild | final public boolean hasChild(Login login) throws TKException(Code) | | Checks wether there is an association with the given child login.
Parameters: login - the child login. true if there is an association with thegiven child login, otherwise false . exception: com.teamkonzept.lib.TKException - if an error occured during login retrieval. |
isParent | final public boolean isParent(Login login) throws TKException(Code) | | Checks wether this login object is a parent of the given login object.
Parameters: login - the login object. true if this login object is a parent of thegiven login object, otherwise false . exception: com.teamkonzept.lib.TKException - if an error occured during login retrieval. |
isProfile | final public boolean isProfile()(Code) | | Checks wether this login object represents a profile.
true . |
isUser | final public boolean isUser()(Code) | | Checks wether this login object represents a user.
false . |
|
|
|