|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handles all delegated admin functionality.
Method Summary | |
void |
addGroupAdmin(ProfileIdentity delegateeUser,
GroupPortal groupPortal)
Adds a GroupAdmin for a given GroupPortal |
void |
addPortalAdmin(ProfileIdentity delegateeUser,
PortalIdentifier portalIdentifier,
java.util.List groupPortals)
Adds a PortalAdmin for a given Portal |
boolean |
canAdministerGroupPortal(ProfileIdentity delegateeUser,
GroupPortal groupPortal)
Returns true if the calling Admin is an (SA), (PA with assoc to Portal), or (GA with assoc to GroupPortal) |
boolean |
canAdministerPortal(ProfileIdentity delegateeUser,
PortalIdentifier portalId)
Returns true if the calling Admin is an (SA) or (PA with assoc to Portal) |
boolean |
canDelegateGroupAdmin(ProfileIdentity delegateeUser,
GroupPortal groupPortal)
Returns true if the calling Admin has at least at least 1 delegate capability for the given Portal |
boolean |
canDelegatePortalAdmin(ProfileIdentity delegateeUser,
PortalIdentifier portalId)
Returns true if the Admin has at least at least 1 delegate capability for the given Portal |
void |
copyGroupAdminEntitlements(ProfileIdentity delegateeUser,
GroupPortal sourceGroupPortal,
GroupPortal destinationGroupPortal)
Copy the complete set of capabilities for a given user (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used to copy capabilities for a user |
void |
copyPortalAdminEntitlements(ProfileIdentity delegateeUser,
PortalIdentifier sourcePortalId,
PortalIdentifier destinationPortalId)
Copy the complete set of capabilities for a given user (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used to copy capabilities for a user |
java.util.List |
getGroupAdminEligibleUsers(GroupPortal groupPortal)
Retrieve admin eligible usernames for an SA, PA or GA to choose from when creating a GA for a GroupPortal. |
java.util.List |
getGroupAdmins(GroupPortal groupPortal)
Get all GroupAdmin usernames for a GroupPortal for an SA, PA or GA to manage. |
java.util.List |
getPortalAdminEligibleGroupAdmins(PortalIdentifier portalId,
java.util.List groupPortals)
Retrieve admin eligible existing GroupAdmin user names for an SA or PA to choose from when promoting a GA to a PA for a Portal. |
java.util.List |
getPortalAdminEligibleUsers(PortalIdentifier portalIdentifier,
java.util.List groupPortals)
Retrieve admin eligible user names for an SA or PA to choose from when creating a PA for a Portal. |
java.util.List |
getPortalAdmins(PortalIdentifier portalId)
Get all PortalAdmin usernames for a Portal for an SA or PA to manage (Note: Only PA's will be returned. |
boolean |
isAdmin(ProfileIdentity delegateeUser)
Returns true if the given user is an admin for ANY resource |
boolean |
isAdminEligible(java.lang.String userName)
Returns true if the given user is a member of the group for users who are elibible to be delegated administrators (usually "AdminEligible", but can be overridden with an env-entry. |
boolean |
isAdminGroup(java.lang.String userGroup)
Returns true if the given user group is an admin or admin eligible group |
boolean |
isDelegatedAdmin(java.lang.String userName)
Returns true if the given user is a member of the group for assigned delegated administrators (usually "DelegatedAdministrator", but can be overridden with an env-entry. |
boolean |
isGroupAdminAccessAllowed(ProfileIdentity delegateeUser,
GroupPortal groupPortal,
java.lang.String resourceType,
java.lang.String adminTask,
java.lang.String capabilityKey)
Retrieve a capability for a given key (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used by the UI to retrieve capabilities for a user during a capability edit |
boolean |
isMemberOf(java.lang.String userGroupName,
java.lang.String userName)
Returns true if the given user is a member of the given group |
boolean |
isPortalAdminAccessAllowed(ProfileIdentity delegateeUser,
PortalIdentifier portalId,
java.lang.String resourceType,
java.lang.String adminTask,
java.lang.String capabilityKey)
Retrieve a capability for a given key (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used by the UI to retrieve capabilities for a user during a capability edit |
boolean |
isPortalSystemAdmin(java.lang.String userName)
Returns true if the given user is a member of the group for Portal System Administrators (usually "SystemAdministrator", but can be overridden with an env-entry. |
boolean |
isWritableRealm()
Checks if the underlying user realm is writable or not |
void |
removeGroupAdmin(ProfileIdentity delegateeUser,
GroupPortal groupPortal)
Removes a GroupAdmin from a given GroupPortal |
void |
removeGroupAdminEntitlements(ProfileIdentity delegateeUser,
GroupPortal groupPortal)
Remove the complete set of capabilities for a given user (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used to copy capabilities for a user |
void |
removePortalAdmin(ProfileIdentity delegateeUser,
PortalIdentifier portalIdentifier)
Removes a PortalAdmin from a given Portal |
void |
removePortalAdminEntitlements(ProfileIdentity delegateeUser,
PortalIdentifier portalId)
Remove the complete set of capabilities for a given user (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used to copy capabilities for a user |
void |
setGroupAdminAccessAllowed(ProfileIdentity delegateeUser,
GroupPortal groupPortal,
java.lang.String resourceType,
java.lang.String adminTask,
java.lang.String capabilityKey,
boolean capabilityValue)
Set a capability for a given task and capability (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used by the UI to set capabilities for a user during a capability edit |
void |
setPortalAdminAccessAllowed(ProfileIdentity delegateeUser,
PortalIdentifier portalId,
java.lang.String resourceType,
java.lang.String adminTask,
java.lang.String capabilityKey,
boolean capabilityValue)
Set a capability for a given task and capability (Note: Constants can be found in com.bea.portal.entitlement.resource.PortalAdminTaskResourceConstants) This method is used by the UI to set capabilities for a user during a capability edit |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public boolean isWritableRealm() throws java.rmi.RemoteException
public java.util.List getPortalAdminEligibleUsers(PortalIdentifier portalIdentifier, java.util.List groupPortals) throws java.rmi.RemoteException
portalIdentifier
- the PortalIdentifier of the PortalgroupPortals
- list of all Group Portal objects for the given Portalpublic java.util.List getPortalAdminEligibleGroupAdmins(PortalIdentifier portalId, java.util.List groupPortals) throws java.rmi.RemoteException
portalIdentifier
- the PortalIdentifier of the PortalgroupPortals
- list of all Group Portal objects for the given Portalpublic java.util.List getGroupAdminEligibleUsers(GroupPortal groupPortal) throws java.rmi.RemoteException
groupPortal
- the GroupPortalpublic java.util.List getPortalAdmins(PortalIdentifier portalId) throws java.rmi.RemoteException
portalId
- the PortalIdentifierpublic void addPortalAdmin(ProfileIdentity delegateeUser, PortalIdentifier portalIdentifier, java.util.List groupPortals) throws RealmNotWritableAddException, java.rmi.RemoteException
delegateeUser
- the user to add as an AdminportalIdentifier
- the PortalIdentifier of the Portal to administergroupPortals
- all Group Portals for the Portal - required if GA -> PA promotion is being performedpublic void removePortalAdmin(ProfileIdentity delegateeUser, PortalIdentifier portalIdentifier) throws java.rmi.RemoteException
delegateeUser
- the user to remove as a PortalAdminportalIdentifier
- the PortalIdentifier of the Portal to administerpublic java.util.List getGroupAdmins(GroupPortal groupPortal) throws java.rmi.RemoteException
groupPortal
- the GroupPortalpublic void addGroupAdmin(ProfileIdentity delegateeUser, GroupPortal groupPortal) throws RealmNotWritableAddException, java.rmi.RemoteException
delegateeUser
- the user to add as an GroupAdmingroupPortal
- the GroupPortal to administerpublic void removeGroupAdmin(ProfileIdentity delegateeUser, GroupPortal groupPortal) throws java.rmi.RemoteException
delegateeUser
- the user to remove as a PortalAdmingroupPortal
- the GroupPortal to administerpublic boolean isPortalAdminAccessAllowed(ProfileIdentity delegateeUser, PortalIdentifier portalId, java.lang.String resourceType, java.lang.String adminTask, java.lang.String capabilityKey) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesportalId
- the PortalIdentifierresourceType
- the type of resource - see either PortalAdminTaskResourceConstants or PortalEntitlementResourceConstantsadminTask
- the adminTaskcapabilityKey
- the key to set a capabilitypublic boolean isGroupAdminAccessAllowed(ProfileIdentity delegateeUser, GroupPortal groupPortal, java.lang.String resourceType, java.lang.String adminTask, java.lang.String capabilityKey) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesgroupPortal
- the GroupPortalresourceType
- the type of resource - see either PortalAdminTaskResourceConstants or PortalEntitlementResourceConstants * @param adminTask the adminTaskcapabilityKey
- the key to set a capabilitypublic void setPortalAdminAccessAllowed(ProfileIdentity delegateeUser, PortalIdentifier portalId, java.lang.String resourceType, java.lang.String adminTask, java.lang.String capabilityKey, boolean capabilityValue) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesportalId
- the PortalIdentifierresourceType
- the type of resource - see either PortalAdminTaskResourceConstants or PortalEntitlementResourceConstantsadminTask
- the adminTaskcapabilityKey
- the key to set a capabilitypublic void setGroupAdminAccessAllowed(ProfileIdentity delegateeUser, GroupPortal groupPortal, java.lang.String resourceType, java.lang.String adminTask, java.lang.String capabilityKey, boolean capabilityValue) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesgroupPortal
- the GroupPortalresourceType
- the type of resource - see either PortalAdminTaskResourceConstants or PortalEntitlementResourceConstantsadminTask
- the adminTaskcapabilityKey
- the key to set a capabilitycapabilityValue
- the value of the capabilitypublic void copyPortalAdminEntitlements(ProfileIdentity delegateeUser, PortalIdentifier sourcePortalId, PortalIdentifier destinationPortalId) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiessourcePortalId
- the source PortalIdentifierdestinationPortalId
- the destination PortalIdentifierpublic void copyGroupAdminEntitlements(ProfileIdentity delegateeUser, GroupPortal sourceGroupPortal, GroupPortal destinationGroupPortal) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiessourceGroupPortal
- the source GroupPortaldestinationGroupPortal
- the destination GroupPortalpublic void removePortalAdminEntitlements(ProfileIdentity delegateeUser, PortalIdentifier portalId) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesportalId
- the PortalIdentifierpublic void removeGroupAdminEntitlements(ProfileIdentity delegateeUser, GroupPortal groupPortal) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to set capabilitiesgroupPortal
- the GroupPortalpublic boolean canDelegatePortalAdmin(ProfileIdentity delegateeUser, PortalIdentifier portalId) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to checkportalId
- the Portalpublic boolean canDelegateGroupAdmin(ProfileIdentity delegateeUser, GroupPortal groupPortal) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to checkgroupPortal
- the GroupPortalpublic boolean canAdministerPortal(ProfileIdentity delegateeUser, PortalIdentifier portalId) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to checkportalId
- the Portalpublic boolean canAdministerGroupPortal(ProfileIdentity delegateeUser, GroupPortal groupPortal) throws java.rmi.RemoteException
delegateeUser
- the delegatee admin user to checkgroupPortal
- the GroupPortalpublic boolean isAdminGroup(java.lang.String userGroup) throws java.rmi.RemoteException
userGroup
- the User Grouppublic boolean isAdmin(ProfileIdentity delegateeUser) throws java.rmi.RemoteException
user
- the admin userpublic boolean isMemberOf(java.lang.String userGroupName, java.lang.String userName) throws java.rmi.RemoteException
userGroupName
- the user group nameuserName
- the user namepublic boolean isDelegatedAdmin(java.lang.String userName) throws java.rmi.RemoteException
userName
- the user namepublic boolean isPortalSystemAdmin(java.lang.String userName) throws java.rmi.RemoteException
userName
- the user namepublic boolean isAdminEligible(java.lang.String userName) throws java.rmi.RemoteException
userName
- the user name
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |