com.starbase.starteam
Interface ISecurableContainer

All Known Implementing Classes:
Folder, Project, Type, View

public interface ISecurableContainer

A container in the repository that can hold secured objects of a given type.


Method Summary
 AclEntry[] getContainerLevelACL(java.lang.String typeName)
          Gets the container-level access rights explicitly assigned to this container for objects of the given type.
 ISecurableContainer getParentContainer()
          If there are no container-level access rights for the given type explicitly assigned to this container, then the effective container-level access rights come from a parent container.
 boolean hasPermission(int permissions, java.lang.String typeName)
          Determines whether or not the given permissions are granted to the logged in user for securable objects of the given type in this container.
 void setContainerLevelACL(AclEntry[] acl, java.lang.String typeName)
          Sets the container-level access rights explicitly assigned to this container for objects of the given type.
 

Method Detail

getParentContainer

public ISecurableContainer getParentContainer()
If there are no container-level access rights for the given type explicitly assigned to this container, then the effective container-level access rights come from a parent container.

Returns:
This object's parent container.

getContainerLevelACL

public AclEntry[] getContainerLevelACL(java.lang.String typeName)
Gets the container-level access rights explicitly assigned to this container for objects of the given type.

Parameters:
typeName - The name of the type of the secured objects in this container.
Returns:
The container-level access rights for objects of the given type, or null if there are none assigned to this container.
See Also:
AclEntry, TypeNames

setContainerLevelACL

public void setContainerLevelACL(AclEntry[] acl,
                                 java.lang.String typeName)
Sets the container-level access rights explicitly assigned to this container for objects of the given type.

Parameters:
acl - The access control list for this container, or null to remove any existing access rights.
typeName - The name of the type of the secured objects in this container.
See Also:
AclEntry, TypeNames

hasPermission

public boolean hasPermission(int permissions,
                             java.lang.String typeName)
Determines whether or not the given permissions are granted to the logged in user for securable objects of the given type in this container.

Parameters:
permissions - One or more permissions to be tested.
typeName - The name of the type of the secured objects in this container.
Returns:
true if all the requested permissions are granted; false if at least one of the requested permissions is denied.
See Also:
Permission, TypeNames


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.