com.stratelia.webactiv.beans.admin
Class ProfileInstManager

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.ProfileInstManager

public class ProfileInstManager
extends Object


Constructor Summary
ProfileInstManager()
          Constructor
 
Method Summary
 String createProfileInst(ProfileInst profileInst, DomainDriverManager ddManager, String sFatherCompoId)
          Create a new Profile instance in database
 void deleteProfileInst(ProfileInst profileInst, DomainDriverManager ddManager)
          Deletes profile instance from Silverpeas
 String[] getAllComponentObjectProfileIdsOfGroup(String groupId)
          Get all the node profiles Id for the given group
 String[] getAllComponentObjectProfileIdsOfUser(String sUserId, List<String> groupIds)
          Get all the component object profile Ids for the given user and/or groups
 ProfileInst getInheritedProfileInst(DomainDriverManager ddManager, String instanceId, String roleName)
           
 String[] getProfileIdsOfGroup(String sGroupId)
          Get all the profiles Id for the given group
 String[] getProfileIdsOfUser(String sUserId, List<String> groupIds)
          Get all the profiles Id for the given user and groups
 ProfileInst getProfileInst(DomainDriverManager ddManager, String sProfileId, String sFatherId)
          Get Profileinformation from database with the given id and creates a new Profile instance
 String[] getProfileNamesOfUser(String sUserId, List<String> groupIds, int componentId)
           
 String updateProfileInst(GroupManager groupManager, DomainDriverManager ddManager, ProfileInst profileInstNew, RightAssignationContext.MODE rightAssignationMode)
          Update profile instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileInstManager

public ProfileInstManager()
Constructor

Method Detail

createProfileInst

public String createProfileInst(ProfileInst profileInst,
                                DomainDriverManager ddManager,
                                String sFatherCompoId)
                         throws AdminException
Create a new Profile instance in database

Parameters:
profileInst -
ddManager -
sFatherCompoId -
Returns:
Throws:
AdminException

getProfileInst

public ProfileInst getProfileInst(DomainDriverManager ddManager,
                                  String sProfileId,
                                  String sFatherId)
                           throws AdminException
Get Profileinformation from database with the given id and creates a new Profile instance

Parameters:
ddManager -
sProfileId -
sFatherId -
Returns:
Throws:
AdminException

getInheritedProfileInst

public ProfileInst getInheritedProfileInst(DomainDriverManager ddManager,
                                           String instanceId,
                                           String roleName)
                                    throws AdminException
Throws:
AdminException

deleteProfileInst

public void deleteProfileInst(ProfileInst profileInst,
                              DomainDriverManager ddManager)
                       throws AdminException
Deletes profile instance from Silverpeas

Parameters:
profileInst -
ddManager -
Throws:
AdminException

updateProfileInst

public String updateProfileInst(GroupManager groupManager,
                                DomainDriverManager ddManager,
                                ProfileInst profileInstNew,
                                RightAssignationContext.MODE rightAssignationMode)
                         throws AdminException
Update profile instance. The method take into account the Node Rights of users or groups.

Parameters:
groupManager -
ddManager -
profileInstNew -
rightAssignationMode - the data is used from a copy/replace from operation. It is not a nice way to handle this kind of information, but it is not possible to refactor the right services.
Throws:
AdminException

getProfileIdsOfUser

public String[] getProfileIdsOfUser(String sUserId,
                                    List<String> groupIds)
                             throws AdminException
Get all the profiles Id for the given user and groups

Parameters:
sUserId -
groupIds -
Returns:
Throws:
AdminException

getAllComponentObjectProfileIdsOfUser

public String[] getAllComponentObjectProfileIdsOfUser(String sUserId,
                                                      List<String> groupIds)
                                               throws AdminException
Get all the component object profile Ids for the given user and/or groups

Parameters:
sUserId -
groupIds -
Returns:
Throws:
AdminException

getProfileNamesOfUser

public String[] getProfileNamesOfUser(String sUserId,
                                      List<String> groupIds,
                                      int componentId)
                               throws AdminException
Throws:
AdminException

getProfileIdsOfGroup

public String[] getProfileIdsOfGroup(String sGroupId)
                              throws AdminException
Get all the profiles Id for the given group

Parameters:
sGroupId -
Returns:
Throws:
AdminException

getAllComponentObjectProfileIdsOfGroup

public String[] getAllComponentObjectProfileIdsOfGroup(String groupId)
                                                throws AdminException
Get all the node profiles Id for the given group

Parameters:
groupId -
Returns:
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.