Class SpaceProfileInstManager


  • @Service
    @Singleton
    public class SpaceProfileInstManager
    extends Object
    • Constructor Detail

      • SpaceProfileInstManager

        protected SpaceProfileInstManager()
        Constructor
    • Method Detail

      • getSpaceProfileIdsOfUserType

        public String[] getSpaceProfileIdsOfUserType​(String sUserId)
                                              throws AdminException
        Get all the space profile Ids for the given user
        Parameters:
        sUserId -
        Returns:
        spaceProfile ids
        Throws:
        AdminException
      • getSpaceProfileIdsOfGroupType

        public String[] getSpaceProfileIdsOfGroupType​(String groupId)
                                               throws AdminException
        Get all the space profile Ids for the given group
        Parameters:
        groupId -
        Returns:
        spaceProfile ids
        Throws:
        AdminException
      • createSpaceProfileInst

        public String createSpaceProfileInst​(SpaceProfileInst spaceProfileInst,
                                             int parentSpaceLocalId)
                                      throws AdminException
        Create a new space profile instance in database
        Parameters:
        spaceProfileInst -
        parentSpaceLocalId -
        Returns:
        Throws:
        AdminException
      • getSpaceProfileInst

        public SpaceProfileInst getSpaceProfileInst​(String spaceProfileId,
                                                    boolean includeRemovedUsersAndGroups)
                                             throws AdminException
        Get Space profile information with given id and creates a new SpaceProfileInst
        Parameters:
        spaceProfileId - identifier for the space profile.
        includeRemovedUsersAndGroups - true to take into account removed groups and removed users.
        Returns:
        the corresponding SpaceProfileInst if any, null otherwise.
        Throws:
        AdminException - if an error occurred.
      • getInheritedSpaceProfileInstByName

        public SpaceProfileInst getInheritedSpaceProfileInstByName​(int spaceLocalId,
                                                                   String roleName)
                                                            throws AdminException
        get information for given id and store it in the given SpaceProfileInst object
        Parameters:
        spaceLocalId -
        roleName -
        Throws:
        AdminException
      • deleteSpaceProfileInst

        public void deleteSpaceProfileInst​(SpaceProfileInst spaceProfileInst)
                                    throws AdminException
        Deletes space profile instance from Silverpeas
        Parameters:
        spaceProfileInst -
        Throws:
        AdminException