com.centrasite.control.security.items
Class UserItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.security.items.AbstractRoleItem
          extended by com.centrasite.control.security.items.UserItem
All Implemented Interfaces:
Item, IPrincipal

public class UserItem
extends AbstractRoleItem
implements IPrincipal

Represents an user


Field Summary
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
UserItem(CentraSiteRoleManager parent, javax.xml.registry.infomodel.RegistryObject ro, Connector connector)
           
UserItem(CentraSiteRoleManager rmi, com.softwareag.security.jaas.interfaces.SagPrincipal user, Connector connector)
           
UserItem(java.lang.String qualifiedUserId, boolean assigned, Connector connector)
          Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead
UserItem(java.lang.String qualifiedUserId, boolean assigned, java.lang.String description, Connector connector)
          Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead
UserItem(java.lang.String domain, java.lang.String userId, boolean assigned, Connector connector)
          Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead
UserItem(java.lang.String domain, java.lang.String userId, boolean assigned, java.lang.String description, Connector connector)
          Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead
 
Method Summary
 void delete()
           
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(boolean refresh)
           
 java.lang.String getDescription()
           
 java.lang.String getDomain()
           
 java.lang.String getFullyQualifiedName()
           
 java.lang.String getImageURL()
           
 java.lang.String getName()
           
 java.lang.String getPath()
          For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null
 javax.xml.registry.infomodel.User getRegistryObject()
           
 ReportInterface getReport()
          Get report to be used when selecting given object in tree.
 java.lang.String getType()
           
 boolean hasNoChildren()
           
 boolean isAssigned()
           
 boolean isGuest()
           
static boolean isPredefinedUser(java.lang.String user)
          Test whether given user name is one of the predefined users
 void setGuest(boolean guest)
           
 java.lang.String toString()
           
 
Methods inherited from class com.centrasite.control.security.items.AbstractRoleItem
getNameEx, getPropertyAttribute, getPropertyKeys, getRoleManagementItem, isRole, saveUserLinks, showReport
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, clearProperties, getAccessControlElements, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getCurrentUserPermissionItem, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getKey, getLanguage, getLocale, getNonPermissionAccessControlElements, getPersistanceLocale, getPrivilegeDescriptor, getProperties, getRelatedItems, getReportForDetailView, hasRequiredAttribute, isLocked, isModified, isReadOnly, isStandalone, isSubTabModified, removeCommand, replaceCommand, save, setAccessControlElements, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setProperties, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.centrasite.control.security.items.IPrincipal
getPropertyAttribute, getPropertyKeys, isRole
 

Constructor Detail

UserItem

public UserItem(CentraSiteRoleManager parent,
                javax.xml.registry.infomodel.RegistryObject ro,
                Connector connector)

UserItem

public UserItem(CentraSiteRoleManager rmi,
                com.softwareag.security.jaas.interfaces.SagPrincipal user,
                Connector connector)

UserItem

public UserItem(java.lang.String domain,
                java.lang.String userId,
                boolean assigned,
                java.lang.String description,
                Connector connector)
Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead

Constructs an user.

Parameters:
domain - The domain.
userId - The user id.
assigned - True if assigned to a role, otherwise false.
description - Description of user.

UserItem

public UserItem(java.lang.String qualifiedUserId,
                boolean assigned,
                java.lang.String description,
                Connector connector)
Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead

Constructs an user.

Parameters:
qualifiedUserId - The user information in form of domain + "\" + user id.
assigned - True if assigned to a role, otherwise false.
description - Description of user.

UserItem

public UserItem(java.lang.String domain,
                java.lang.String userId,
                boolean assigned,
                Connector connector)
Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead

Constructs an user.

Parameters:
domain - The domain.
userId - The user id.
assigned - True if assigned to a role, otherwise false.

UserItem

public UserItem(java.lang.String qualifiedUserId,
                boolean assigned,
                Connector connector)
Deprecated. use UserItem(RoleManagmentItem parent, SagPrincipal user, Connector connector) instead

Constructs an user.

Parameters:
qualifiedUserId - The user information in form of domain + "\" + user id.
assigned - True if assigned to a role, otherwise false.
Method Detail

isAssigned

public boolean isAssigned()

getDomain

public java.lang.String getDomain()
Overrides:
getDomain in class AbstractRoleItem

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Returns:
The domain\name of the user

getName

public java.lang.String getName()
Specified by:
getName in interface Item
Specified by:
getName in interface IPrincipal
Overrides:
getName in class AbstractRoleItem

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Item
Overrides:
getDescription in class AbstractRoleItem

getChildren

public java.util.Iterator getChildren()
                               throws java.lang.Exception
Specified by:
getChildren in interface Item
Overrides:
getChildren in class AbstractRoleItem
Throws:
java.lang.Exception

getChildren

public java.util.Iterator getChildren(boolean refresh)
                               throws java.lang.Exception
Specified by:
getChildren in interface Item
Overrides:
getChildren in class AbstractRoleItem
Throws:
java.lang.Exception

getPath

public java.lang.String getPath()
                         throws java.lang.Exception
Description copied from class: AbstractItem
For some object types (especially for RepositoryObjectItems) this method may return a reasonable path - instances of other classes should return null

Specified by:
getPath in interface Item
Overrides:
getPath in class AbstractRoleItem
Returns:
a path (if reasonable) or null
Throws:
java.lang.Exception

hasNoChildren

public boolean hasNoChildren()
                      throws java.lang.Exception
Specified by:
hasNoChildren in interface Item
Overrides:
hasNoChildren in class AbstractRoleItem
Throws:
java.lang.Exception

getReport

public ReportInterface getReport()
Description copied from class: AbstractItem
Get report to be used when selecting given object in tree.

Specified by:
getReport in interface Item
Overrides:
getReport in class AbstractRoleItem

getImageURL

public java.lang.String getImageURL()
                             throws java.lang.Exception
Specified by:
getImageURL in interface Item
Specified by:
getImageURL in interface IPrincipal
Overrides:
getImageURL in class AbstractRoleItem
Throws:
java.lang.Exception

isPredefinedUser

public static boolean isPredefinedUser(java.lang.String user)
Test whether given user name is one of the predefined users

Parameters:
user -
Returns:
true if predefined user, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class AbstractItem

getType

public java.lang.String getType()
Specified by:
getType in interface IPrincipal
Overrides:
getType in class AbstractRoleItem

delete

public void delete()
            throws java.lang.Exception
Specified by:
delete in class AbstractRoleItem
Throws:
java.lang.Exception

getRegistryObject

public javax.xml.registry.infomodel.User getRegistryObject()
Overrides:
getRegistryObject in class AbstractRoleItem

isGuest

public boolean isGuest()

setGuest

public void setGuest(boolean guest)