com.starbase.starteam
Interface ISecurable

All Known Subinterfaces:
ISecurableObject
All Known Implementing Classes:
Filter, Item, Project, PromotionState, QueryInfo, View

public interface ISecurable

An object that can be secured in the repository.


Method Summary
 AclEntry[] getACL()
          Gets the access rights explicitly assigned to this object.
 ISecurableContainer getParentContainer()
          If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container.
 Type getType()
          If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container.
 boolean hasPermission(int permissions)
          Determines whether or not the given permissions are granted to the logged in user for this securable object.
 void setACL(AclEntry[] acl)
          Sets the access rights explicitly assigned to this object.
 

Method Detail

getParentContainer

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

Returns:
This object's parent container.
See Also:
ISecurableContainer

getType

public Type getType()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. Access rights in the parent container are type-specific.

Returns:
This object's type.
See Also:
ISecurable.getParentContainer(), Type

getACL

public AclEntry[] getACL()
Gets the access rights explicitly assigned to this object.

Returns:
The access rights explicitly assigned to this object.
See Also:
AclEntry

setACL

public void setACL(AclEntry[] acl)
Sets the access rights explicitly assigned to this object.

Parameters:
acl - The new access control list to be assigned to this object, or null to remove any existing access rights.
See Also:
AclEntry

hasPermission

public boolean hasPermission(int permissions)
Determines whether or not the given permissions are granted to the logged in user for this securable object.

Parameters:
permissions - One or more permissions to be tested.
Returns:
true if all the requested permissions are granted; false if at least one of the requested permissions is denied.
See Also:
Permission


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