|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryPermissionsManager
Facade through which to examine and manipulate Subversion repository permissions.
Field Summary | |
---|---|
static String |
IGNORE_SYSADMIN_GROUP
Used to hide the system-administrators group from the front end |
Method Summary | |
---|---|
void |
deletePathPermissions(String svnPath)
Removes permissions applied to a path allowing higher-up permissions to be automatically applied. |
RepositoryPermissions |
getInitialPermissions()
|
List<String> |
getNonProjectPaths()
Returns map of svn paths that are not roots of any Fisheye Repository and permissions for each path. |
RepositoryPermissions |
getPathPermissions(String svnPath)
|
RepositoryPermissions |
getPermissions(String repositoryKey)
|
String |
getSvnPathForFisheyeRepository(String repositoryKey)
The repository key in FishEye and the SVN path corresponding to that key may be different. |
void |
reset()
Resets the cache of Fisheye to Svn mapping |
void |
setDefaultPermissions(RepositoryPermissions permissions)
Sets the default permissions that will be applied to new repositories. |
void |
setPermissions(String repositoryKey,
RepositoryPermissions permissions)
Applies new permissions to a repository. |
void |
setPermissions(String repositoryKey,
String svnPath,
RepositoryPermissions permissions)
Applies new permissions to a repository and a specific SVN path. |
void |
setRawPermissions(String repositoryKey,
String svnPath,
RepositoryPermissions permissions)
Sets the permissions for a path without performing any jiggery-pokery that would usually ensure consistency. |
PermissionsSynchronisationResult |
synchroniseAllRepositoryPermissions()
Synchronises the permissions for all project repositories, excluding permissions for non project paths, which are synchronised individually whenever changed. |
Field Detail |
---|
static final String IGNORE_SYSADMIN_GROUP
Method Detail |
---|
RepositoryPermissions getPermissions(String repositoryKey) throws ApplicationNotFoundException, ApplicationCommunicationException, RepositoryNotFoundException
repositoryKey
- used to designate the target repository
repositoryKey
ApplicationNotFoundException
- if an application primary instance (such as FishEye or Subversion) is not
configured properly
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwords
RepositoryNotFoundException
- if the repository of the given repository key is not foundRepositoryPermissions getPathPermissions(String svnPath) throws ApplicationNotFoundException, ApplicationCommunicationException
svnPath
- used to designate the target path
path
ApplicationNotFoundException
- if an application primary instance (such as FishEye or Subversion) is not
configured properly
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwordsvoid setPermissions(String repositoryKey, String svnPath, RepositoryPermissions permissions) throws ApplicationNotFoundException, RepositoryNotFoundException, ApplicationCommunicationException
setPermissions
method which lacks the svnPath
parameter.
repositoryKey
- the target repositorysvnPath
- the target svn path corresponding to the repository.permissions
- the new permissions for the target repository
ApplicationNotFoundException
- if an application primary instance is not configured properly
RepositoryNotFoundException
- if the repository of the given repository key is not found
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwordsvoid setPermissions(String repositoryKey, RepositoryPermissions permissions) throws ApplicationNotFoundException, RepositoryNotFoundException, ApplicationCommunicationException
repositoryKey
- the target repositorypermissions
- the new permissions for the target repository
ApplicationNotFoundException
- if an application primary instance is not configured properly
RepositoryNotFoundException
- if the repository of the given repository key is not found
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwordsvoid setDefaultPermissions(RepositoryPermissions permissions) throws ApplicationCommunicationException, ApplicationNotFoundException
permissions
- the new defaults
ApplicationNotFoundException
- if an application primary instance is not configured properly
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwordsRepositoryPermissions getInitialPermissions() throws IOException
IOException
- if the permissions cannot be loadedPermissionsSynchronisationResult synchroniseAllRepositoryPermissions() throws ApplicationCommunicationException, ApplicationNotFoundException
ApplicationCommunicationException
- if the manager is unable to retrieve the current repository mappings from FishEye
ApplicationNotFoundException
- if FishEye is not currently linked in AppLinksString getSvnPathForFisheyeRepository(String repositoryKey)
repositoryKey
- as found in FishEye
List<String> getNonProjectPaths() throws IOException, ApplicationNotFoundException, ApplicationCommunicationException
IOException
- if there is an error reading svn authz file
ApplicationNotFoundException
- if an application primary instance is not configured properly
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwordsvoid reset()
void deletePathPermissions(String svnPath)
svnPath
- the path whose permissions will be droppedvoid setRawPermissions(String repositoryKey, String svnPath, RepositoryPermissions permissions) throws RepositoryNotFoundException, ApplicationCommunicationException, ApplicationNotFoundException
repositoryKey
- the project key of the repository, may be nullsvnPath
- the path whose permissions will be setpermissions
- the new permissions
ApplicationNotFoundException
- if an application primary instance is not configured properly
RepositoryNotFoundException
- if the repository of the given repository key is not found
ApplicationCommunicationException
- examples of communication errors are timeouts and incorrect passwords
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |