com.microsoft.tfs.core.clients.security
Class SecurityService

java.lang.Object
  extended by com.microsoft.tfs.core.clients.security.SecurityService
All Implemented Interfaces:
ISecurityService

public class SecurityService
extends java.lang.Object
implements ISecurityService

Since:
TEE-SDK-11.0

Constructor Summary
SecurityService(TFSConnection connection)
           
 
Method Summary
 SecurityNamespace createSecurityNamespace(SecurityNamespaceDescription description)
          Creates a SecurityNamespace that is based off of the provided information.
 boolean deleteSecurityNamespace(com.microsoft.tfs.util.GUID namespaceId)
          Deletes the SecurityNamespace from the collection of SecurityNamespaces.
 SecurityNamespace getSecurityNamespace(com.microsoft.tfs.util.GUID namespaceId)
          Returns the SecurityNamespace associated with this id.
 SecurityNamespace[] getSecurityNamespaces()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityService

public SecurityService(TFSConnection connection)
Method Detail

createSecurityNamespace

public SecurityNamespace createSecurityNamespace(SecurityNamespaceDescription description)
Description copied from interface: ISecurityService
Creates a SecurityNamespace that is based off of the provided information.

Specified by:
createSecurityNamespace in interface ISecurityService
Parameters:
description - The description to create the namespace from.
Returns:
the SecurityNamespace that was created

deleteSecurityNamespace

public boolean deleteSecurityNamespace(com.microsoft.tfs.util.GUID namespaceId)
Description copied from interface: ISecurityService
Deletes the SecurityNamespace from the collection of SecurityNamespaces.

Specified by:
deleteSecurityNamespace in interface ISecurityService
Parameters:
namespaceId - The id of the SecurityNamespace to delete
Returns:
True if something was deleted

getSecurityNamespace

public SecurityNamespace getSecurityNamespace(com.microsoft.tfs.util.GUID namespaceId)
Description copied from interface: ISecurityService
Returns the SecurityNamespace associated with this id. null is returned if a SecurityNamespace with this id does not exist.

Specified by:
getSecurityNamespace in interface ISecurityService
Parameters:
namespaceId - The id for the SecurityNamespace desired
Returns:
SecurityNamespace associated with this id. null is returned if a SecurityNamespace with this id does not exist

getSecurityNamespaces

public SecurityNamespace[] getSecurityNamespaces()
Specified by:
getSecurityNamespaces in interface ISecurityService
Returns:
An enumeration of all of the SecurityNamespaces that exist as a part of this Security Service.


© 2015 Microsoft. All rights reserved.