com.sapportals.wcm.util.acl
Class UMPrincipalRaw
java.lang.Object
com.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.
| 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 |
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
UMPrincipalRaw
public UMPrincipalRaw(UMPrincipalRaw.TypeInfo pti,
String id,
boolean fakeIt)
throws WcmException
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