com.atlassian.studio.repository.crucible
Interface CruciblePermissionsManager

All Known Implementing Classes:
CruciblePermissionsManagerImpl

public interface CruciblePermissionsManager

Interface for managing default permissions scheme and project permissions schemes applied to new and existing projects. Methods here should generally not be called directly, but rather through the RepositoryPermissionsManager.

See Also:
RepositoryPermissionsManager

Method Summary
 void createPermissions(String repositoryKey, RepositoryPermissions permissions)
          Creates the permissions for a given FishEye repository
 void setDefaultPermissions(RepositoryPermissions permissions)
          Overwrites the default permissions for new FishEye repositories.
 void updatePermissions(String repositoryKey, RepositoryPermissions permissions)
          Updates the permissions for a given FishEye repository
 

Method Detail

createPermissions

void createPermissions(String repositoryKey,
                       RepositoryPermissions permissions)
                       throws ApplicationCommunicationException,
                              ApplicationNotFoundException
Creates the permissions for a given FishEye repository

Parameters:
repositoryKey - the key of the repository whose permissions will be set
permissions - the new permissions
Throws:
ApplicationCommunicationException - when the communication to Crucible fails
ApplicationNotFoundException

updatePermissions

void updatePermissions(String repositoryKey,
                       RepositoryPermissions permissions)
                       throws ApplicationCommunicationException,
                              ApplicationNotFoundException
Updates the permissions for a given FishEye repository

Parameters:
repositoryKey - the key of the project whose permissions will be set
permissions - the new permissions
Throws:
ApplicationCommunicationException - when the communication to Crucible fails
ApplicationNotFoundException

setDefaultPermissions

void setDefaultPermissions(RepositoryPermissions permissions)
                           throws ApplicationCommunicationException,
                                  ApplicationNotFoundException
Overwrites the default permissions for new FishEye repositories. Changes made to the default are not applied to existing repositories; they will still need to be managed manually.

Parameters:
permissions - the new defaults
Throws:
ApplicationCommunicationException - when the communication to Crucible fails
ApplicationNotFoundException


Copyright © 2002-2012 Atlassian. All Rights Reserved.