com.stratelia.webactiv.beans.admin
Class SpaceProfileInstManager

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

public class SpaceProfileInstManager
extends Object


Constructor Summary
SpaceProfileInstManager()
          Constructor
 
Method Summary
 String createSpaceProfileInst(SpaceProfileInst spaceProfileInst, DomainDriverManager domainManager, String parentSpaceId)
          Create a new space profile instance in database
 void deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst, DomainDriverManager ddManager)
          Deletes space profile instance from Silverpeas
 SpaceProfileInst getInheritedSpaceProfileInstByName(DomainDriverManager ddManager, String spaceId, String roleName)
          get information for given id and store it in the given SpaceProfileInst object
 String[] getSpaceProfileIdsOfGroupType(DomainDriverManager domainManager, String groupId)
          Get all the space profile Ids for the given group
 String[] getSpaceProfileIdsOfUserType(DomainDriverManager domainManager, String sUserId)
          Get all the space profile Ids for the given user
 SpaceProfileInst getSpaceProfileInst(DomainDriverManager ddManager, String spaceProfileId, String parentSpaceId)
          Get Space profile information with given id and creates a new SpaceProfileInst
 SpaceProfileInst getSpaceProfileInstByName(DomainDriverManager ddManager, String spaceId, String roleName)
           
 String updateSpaceProfileInst(SpaceProfileInst spaceProfileInst, DomainDriverManager ddManager, SpaceProfileInst spaceProfileInstNew)
          Updates space profile instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceProfileInstManager

public SpaceProfileInstManager()
Constructor

Method Detail

getSpaceProfileIdsOfUserType

public String[] getSpaceProfileIdsOfUserType(DomainDriverManager domainManager,
                                             String sUserId)
                                      throws AdminException
Get all the space profile Ids for the given user

Parameters:
domainManager -
sUserId -
Returns:
spaceProfile ids
Throws:
AdminException

getSpaceProfileIdsOfGroupType

public String[] getSpaceProfileIdsOfGroupType(DomainDriverManager domainManager,
                                              String groupId)
                                       throws AdminException
Get all the space profile Ids for the given group

Parameters:
domainManager -
groupId -
Returns:
spaceProfile ids
Throws:
AdminException

createSpaceProfileInst

public String createSpaceProfileInst(SpaceProfileInst spaceProfileInst,
                                     DomainDriverManager domainManager,
                                     String parentSpaceId)
                              throws AdminException
Create a new space profile instance in database

Parameters:
spaceProfileInst -
domainManager -
parentSpaceId -
Returns:
Throws:
AdminException

getSpaceProfileInst

public SpaceProfileInst getSpaceProfileInst(DomainDriverManager ddManager,
                                            String spaceProfileId,
                                            String parentSpaceId)
                                     throws AdminException
Get Space profile information with given id and creates a new SpaceProfileInst

Parameters:
ddManager -
spaceProfileId -
parentSpaceId -
Returns:
Throws:
AdminException

getInheritedSpaceProfileInstByName

public SpaceProfileInst getInheritedSpaceProfileInstByName(DomainDriverManager ddManager,
                                                           String spaceId,
                                                           String roleName)
                                                    throws AdminException
get information for given id and store it in the given SpaceProfileInst object

Parameters:
ddManager -
spaceId -
roleName -
Throws:
AdminException

getSpaceProfileInstByName

public SpaceProfileInst getSpaceProfileInstByName(DomainDriverManager ddManager,
                                                  String spaceId,
                                                  String roleName)
                                           throws AdminException
Throws:
AdminException

deleteSpaceProfileInst

public void deleteSpaceProfileInst(SpaceProfileInst spaceProfileInst,
                                   DomainDriverManager ddManager)
                            throws AdminException
Deletes space profile instance from Silverpeas

Parameters:
spaceProfileInst -
ddManager -
Throws:
AdminException

updateSpaceProfileInst

public String updateSpaceProfileInst(SpaceProfileInst spaceProfileInst,
                                     DomainDriverManager ddManager,
                                     SpaceProfileInst spaceProfileInstNew)
                              throws AdminException
Updates space profile instance

Parameters:
spaceProfileInst -
ddManager -
spaceProfileInstNew -
Returns:
Throws:
AdminException


Copyright © 2016 Silverpeas. All Rights Reserved.