© 2002 BEA Systems, Inc.


com.bea.portal.admin.ejb
Interface AdminResourceManager


public interface AdminResourceManager
extends javax.ejb.EJBObject

Handles all resource personalization admin functionality.


Method Summary
 PortalPersonalization createPortalPersonalization(GroupPortal destinationGroupPortal, GroupPortal existingGroupPortal, boolean copyEntitlements, boolean copyAdmins)
          Create a PortalPersonalization from an existing PortalPersonalization.
 java.util.List getAllGroupPortals(PortalIdentifier portalId)
          Retrieve the list of all group portals defined for this portal.
 GroupPortal getGroupPortal(PortalIdentifier portalIdentifier, java.lang.String userGroupIdentifier)
          Retrieve a full GroupPortal
 java.util.List getGroupPortalEligibleUserGroups(PortalIdentifier portalId)
          Retrieve the list of eligible user group for the Portal
 java.util.List getGroupPortals(PortalIdentifier portalIdentifier)
          Retrieve list of GroupPortal objects for a Portal available to the calling Admin user Note: This will return all GroupPortals for a PortalAdmin
 Portal getPortal(PortalIdentifier id)
          Retrieves a Portal for a given PortalIdentifier
 PortalPersonalization getPortalPersonalization(GroupPortal groupPortal)
          Retrieve a full PortalPersonalization
 java.util.List getPortals()
          Retrieve list of PortalIdentifier objects available to the calling Admin user Note: This will return Portals visible to GroupAdmins, as well.
 void removeDeletedLayoutsForGroupPageP13n(java.util.List availableLayouts, PagePersonalization pageP13n, PortalPersonalization groupPortal)
           
 void removeGroupPortalP13nSkin(SkinIdentifier skinId, PortalPersonalization groupPortalP13n)
           
 java.util.List removePortalPersonalization(GroupPortal groupPortal)
          Remove a PortalPersonalization
 void setPortalPersonalization(PortalPersonalization portalPersonalization)
          Set a PortalPersonalization
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getPortal

public Portal getPortal(PortalIdentifier id)
                 throws java.rmi.RemoteException
Retrieves a Portal for a given PortalIdentifier

Parameters:
portalIdentifier - the PortalIdentifier to retrieve
Returns:
the Portal
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the Portal can not be found
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

getPortals

public java.util.List getPortals()
                          throws java.rmi.RemoteException
Retrieve list of PortalIdentifier objects available to the calling Admin user Note: This will return Portals visible to GroupAdmins, as well. This is not a security hole as any future mutable operations on the Portal will check if the user is a PortalAdmin.

Returns:
list of PortalIdentifier objects
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the Portals can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action

getGroupPortals

public java.util.List getGroupPortals(PortalIdentifier portalIdentifier)
                               throws java.rmi.RemoteException
Retrieve list of GroupPortal objects for a Portal available to the calling Admin user Note: This will return all GroupPortals for a PortalAdmin

Parameters:
portalIdentifier - the PortalIdentifier of the GroupPortals
Returns:
list of GroupPortal objects
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the Portal or GroupPortals can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

getGroupPortal

public GroupPortal getGroupPortal(PortalIdentifier portalIdentifier,
                                  java.lang.String userGroupIdentifier)
                           throws java.rmi.RemoteException
Retrieve a full GroupPortal

Parameters:
portalIdentifier - the PortalIdentifier of the GroupPortal
userGroupIdentifier - the UserGroup Identifier of the GroupPortal
Returns:
GroupPortal object
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the Portal can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

createPortalPersonalization

public PortalPersonalization createPortalPersonalization(GroupPortal destinationGroupPortal,
                                                         GroupPortal existingGroupPortal,
                                                         boolean copyEntitlements,
                                                         boolean copyAdmins)
                                                  throws RealmNotWritableAddException,
                                                         java.rmi.RemoteException
Create a PortalPersonalization from an existing PortalPersonalization.

Parameters:
destinationGroupPortal - GroupPortal to base creation on
existingGroupPortal - represents existing PortalPersonalization to create from
copyEntitlements - true if entitlements should be copied from the existing PortalPersonalization
copyAdmins - true if admins should be copied from the existing PortalPersonalization
Returns:
newly-created PortalPersonalization
Throws:
java.rmi.RemoteException - because of EJB contract
RealmNotWritableAddException - thrown if the underlying realm is not writable (ie. LDAP)
AdminResourceSystemException - if the Portal or GroupPortals can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

getPortalPersonalization

public PortalPersonalization getPortalPersonalization(GroupPortal groupPortal)
                                               throws java.rmi.RemoteException
Retrieve a full PortalPersonalization

Parameters:
groupPortal - the GroupPortal that matches a PortalPersonalization
Returns:
PortalPersonalization object
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the GroupPortal or PortalPersonalization can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

setPortalPersonalization

public void setPortalPersonalization(PortalPersonalization portalPersonalization)
                              throws java.rmi.RemoteException
Set a PortalPersonalization

Parameters:
portalPersonalization - the PortalPersonalization to set
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the PortalPersonalization can not be retrieved
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

removePortalPersonalization

public java.util.List removePortalPersonalization(GroupPortal groupPortal)
                                           throws java.rmi.RemoteException
Remove a PortalPersonalization

Parameters:
groupPortal - the GroupPortal that matches a PortalPersonalization
Returns:
list of admin users (String:username) that need to be MANUALLY removed from the DelegatedAdministrator User Group (in the case where an unwritable realm is being used)
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the PortalPersonalization can not be removed
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

getGroupPortalEligibleUserGroups

public java.util.List getGroupPortalEligibleUserGroups(PortalIdentifier portalId)
                                                throws java.rmi.RemoteException
Retrieve the list of eligible user group for the Portal

Parameters:
portalId - the Portal
Returns:
a List of user group names represented as Strings
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the PortalPersonalization can not be removed
DelegatedAdminSecurityException - if the caller does not have sufficient rights to perform this action
IllegalArgumentException - if the arguments are not valid

getAllGroupPortals

public java.util.List getAllGroupPortals(PortalIdentifier portalId)
                                  throws java.rmi.RemoteException
Retrieve the list of all group portals defined for this portal.

Parameters:
portalId - the Portal
Returns:
a List of GroupPortal objects defined for this portal.
Throws:
java.rmi.RemoteException - because of EJB contract
AdminResourceSystemException - if the PortalPersonalization can not be removed
IllegalArgumentException - if the arguments are not valid

removeGroupPortalP13nSkin

public void removeGroupPortalP13nSkin(SkinIdentifier skinId,
                                      PortalPersonalization groupPortalP13n)
                               throws java.rmi.RemoteException


removeDeletedLayoutsForGroupPageP13n

public void removeDeletedLayoutsForGroupPageP13n(java.util.List availableLayouts,
                                                 PagePersonalization pageP13n,
                                                 PortalPersonalization groupPortal)
                                          throws java.rmi.RemoteException


© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved