com.sapportals.wcm.util.acl

Class UMPrincipalRaw

java.lang.Object
  extended bycom.sapportals.wcm.util.acl.UMPrincipalRaw
All Implemented Interfaces:
com.sapportals.portal.security.usermanagement.IGroup, com.sapportals.portal.security.usermanagement.IRole, com.sapportals.portal.security.usermanagement.IUMPrincipal, IUMPrincipalRaw

public final class UMPrincipalRaw
extends Object
implements com.sapportals.portal.security.usermanagement.IUMPrincipal, com.sapportals.portal.security.usermanagement.IGroup, com.sapportals.portal.security.usermanagement.IRole, IUMPrincipalRaw

special implementation for a non existing user, tagged by IUMPrincipalRaw.


Nested Class Summary
static class UMPrincipalRaw.TypeInfo
           
 
Field Summary
static UMPrincipalRaw.TypeInfo PTI_GROUP
           
static UMPrincipalRaw.TypeInfo PTI_ROLE
           
static UMPrincipalRaw.TypeInfo PTI_USER
           
 
Fields inherited from interface com.sapportals.portal.security.usermanagement.IUMPrincipal
DEFAULT_ROLE, DEFAULT_ROLE_DISPLAYNAME, DESCRIPTION, DISPLAYID, DISPLAYNAME, IGROUP, IROLE, IUMEPRINCIPAL, IUSER, USERMAPPING
 
Fields inherited from interface com.sapportals.portal.security.usermanagement.IGroup
EVERYBODY
 
Fields inherited from interface com.sapportals.portal.security.usermanagement.IRole
ADMIN
 
Constructor Summary
UMPrincipalRaw(UMPrincipalRaw.TypeInfo pti, String id, boolean fakeIt)
           
 
Method Summary
 boolean containsGroup(String arg0)
           
 boolean containsUser(String arg0)
           
static com.sapportals.portal.security.usermanagement.IUMPrincipal ensureUMPrincipal(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
          Ensure that the given IUMPrincipal objects comes from the Usermanagement
 boolean equals(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
           
 boolean equals(Object obj)
           
 String[] getAllChildGroups()
           
 String[] getAllChildUsers()
           
 String[] getAllGroups()
           
 String[] getAllParentGroups()
           
 String[] getAllUsers()
           
 String[] getChildGroups()
           
 String getDefaultRole()
           
 String getDescription()
           
 String[] getDirectChildGroups()
           
 String[] getDirectChildUsers()
           
 String[] getDirectGroups()
           
 String[] getDirectParentGroups()
           
 String[] getDirectRoles()
           
 String[] getDirectUsers()
           
 String getDisplayId()
           
 String getDisplayName()
           
 String[] getGroups()
           
 String getId()
           
static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id, UMPrincipalRaw.TypeInfo pti)
           
static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id, UMPrincipalRaw.TypeInfo pti, boolean wrapUnknown)
           
static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id, UMPrincipalRaw.TypeInfo pti, boolean wrapUnknown, boolean fakeIt)
           
 String[] getKeys()
           
 String[] getParentGroups()
           
 HashMap getRawUserMappingData(String s)
           
 String[] getRoleAttributes(String s)
           
 String[] getRoles()
           
 int getType()
           
static UMPrincipalRaw.TypeInfo getTypeInfo(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
           
static UMPrincipalRaw.TypeInfo getTypeInfoByDB(int dbtag)
           
static UMPrincipalRaw.TypeInfo getTypeInfoByUM(int umType)
           
 IGroup getUMEGroup()
           
 String getUMEId()
           
 IRole getUMERole()
           
static com.sapportals.portal.security.usermanagement.IUser getUser(String userid)
           
 String[] getUsers()
           
 String[] getValuesForKey(String s)
           
 String[] getValuesForRoleAttribute(String s, String s1)
           
 int hashCode()
           
 boolean isGroup()
           
 boolean isInGroup(String s)
           
 boolean isInRole(String arg0)
           
static boolean isKnown(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
           
static boolean isSameTypeTag(int type, int tag)
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PTI_USER

public static final UMPrincipalRaw.TypeInfo PTI_USER

PTI_GROUP

public static final UMPrincipalRaw.TypeInfo PTI_GROUP

PTI_ROLE

public static final UMPrincipalRaw.TypeInfo PTI_ROLE
Constructor Detail

UMPrincipalRaw

public UMPrincipalRaw(UMPrincipalRaw.TypeInfo pti,
                      String id,
                      boolean fakeIt)
               throws WcmException
Method Detail

isKnown

public static boolean isKnown(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)

getTypeInfo

public static UMPrincipalRaw.TypeInfo getTypeInfo(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)

getTypeInfoByUM

public static UMPrincipalRaw.TypeInfo getTypeInfoByUM(int umType)

getTypeInfoByDB

public static UMPrincipalRaw.TypeInfo getTypeInfoByDB(int dbtag)

isSameTypeTag

public static boolean isSameTypeTag(int type,
                                    int tag)

getUser

public static com.sapportals.portal.security.usermanagement.IUser getUser(String userid)

getInstance

public static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id,
                                                                                     UMPrincipalRaw.TypeInfo pti)

getInstance

public static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id,
                                                                                     UMPrincipalRaw.TypeInfo pti,
                                                                                     boolean wrapUnknown)

getInstance

public static com.sapportals.portal.security.usermanagement.IUMPrincipal getInstance(String id,
                                                                                     UMPrincipalRaw.TypeInfo pti,
                                                                                     boolean wrapUnknown,
                                                                                     boolean fakeIt)

ensureUMPrincipal

public static final com.sapportals.portal.security.usermanagement.IUMPrincipal ensureUMPrincipal(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Ensure that the given IUMPrincipal objects comes from the Usermanagement

Parameters:
principal - ensure its UM existence
Returns:
principal with same ID as represented by Usermanagement

getDefaultRole

public String getDefaultRole()
Specified by:
getDefaultRole in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getRoles

public String[] getRoles()
Specified by:
getRoles in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getDirectRoles

public String[] getDirectRoles()
Specified by:
getDirectRoles in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getRoleAttributes

public String[] getRoleAttributes(String s)
Specified by:
getRoleAttributes in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getValuesForRoleAttribute

public String[] getValuesForRoleAttribute(String s,
                                          String s1)
Specified by:
getValuesForRoleAttribute in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getGroups

public String[] getGroups()
Specified by:
getGroups in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getValuesForKey

public String[] getValuesForKey(String s)
                         throws com.sapportals.portal.security.usermanagement.UserManagementException
Specified by:
getValuesForKey in interface com.sapportals.portal.security.usermanagement.IUMPrincipal
Throws:
com.sapportals.portal.security.usermanagement.UserManagementException

getKeys

public String[] getKeys()
Specified by:
getKeys in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

refresh

public void refresh()
             throws com.sapportals.portal.security.usermanagement.UserManagementException
Specified by:
refresh in interface com.sapportals.portal.security.usermanagement.IUMPrincipal
Throws:
com.sapportals.portal.security.usermanagement.UserManagementException

isInGroup

public boolean isInGroup(String s)
Specified by:
isInGroup in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

isGroup

public boolean isGroup()
Specified by:
isGroup in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getType

public int getType()
Specified by:
getType in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getId

public String getId()
Specified by:
getId in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

equals

public boolean equals(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Specified by:
equals in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getAllParentGroups

public String[] getAllParentGroups()
Specified by:
getAllParentGroups in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getDirectParentGroups

public String[] getDirectParentGroups()
Specified by:
getDirectParentGroups in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getRawUserMappingData

public HashMap getRawUserMappingData(String s)
Specified by:
getRawUserMappingData in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getDescription

public String getDescription()
Specified by:
getDescription in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getDisplayId

public String getDisplayId()
Specified by:
getDisplayId in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

getUMEId

public String getUMEId()
Specified by:
getUMEId in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

hashCode

public int hashCode()

equals

public boolean equals(Object obj)
Specified by:
equals in interface com.sapportals.portal.security.usermanagement.IUMPrincipal

containsGroup

public boolean containsGroup(String arg0)
Specified by:
containsGroup in interface com.sapportals.portal.security.usermanagement.IGroup

containsUser

public boolean containsUser(String arg0)
Specified by:
containsUser in interface com.sapportals.portal.security.usermanagement.IGroup

getAllChildGroups

public String[] getAllChildGroups()
Specified by:
getAllChildGroups in interface com.sapportals.portal.security.usermanagement.IGroup

getAllChildUsers

public String[] getAllChildUsers()
Specified by:
getAllChildUsers in interface com.sapportals.portal.security.usermanagement.IGroup

getChildGroups

public String[] getChildGroups()
Specified by:
getChildGroups in interface com.sapportals.portal.security.usermanagement.IGroup

getDirectChildGroups

public String[] getDirectChildGroups()
Specified by:
getDirectChildGroups in interface com.sapportals.portal.security.usermanagement.IGroup

getDirectChildUsers

public String[] getDirectChildUsers()
Specified by:
getDirectChildUsers in interface com.sapportals.portal.security.usermanagement.IGroup

getParentGroups

public String[] getParentGroups()
Specified by:
getParentGroups in interface com.sapportals.portal.security.usermanagement.IGroup

getUMEGroup

public IGroup getUMEGroup()
Specified by:
getUMEGroup in interface com.sapportals.portal.security.usermanagement.IGroup

getUsers

public String[] getUsers()
Specified by:
getUsers in interface com.sapportals.portal.security.usermanagement.IGroup

isInRole

public boolean isInRole(String arg0)
Specified by:
isInRole in interface com.sapportals.portal.security.usermanagement.IGroup

getAllGroups

public String[] getAllGroups()
Specified by:
getAllGroups in interface com.sapportals.portal.security.usermanagement.IRole

getAllUsers

public String[] getAllUsers()
Specified by:
getAllUsers in interface com.sapportals.portal.security.usermanagement.IRole

getDirectGroups

public String[] getDirectGroups()
Specified by:
getDirectGroups in interface com.sapportals.portal.security.usermanagement.IRole

getDirectUsers

public String[] getDirectUsers()
Specified by:
getDirectUsers in interface com.sapportals.portal.security.usermanagement.IRole

getUMERole

public IRole getUMERole()
Specified by:
getUMERole in interface com.sapportals.portal.security.usermanagement.IRole


Copyright 2006 SAP AG Complete Copyright Notice