jpl.mipl.mdms.FileService.komodo.api
Class Capability

java.lang.Object
  extended byjpl.mipl.mdms.FileService.komodo.api.Capability

public class Capability
extends Object

This class contains user's capabilities for a file type.

Version:
$Id: Capability.java,v 1.3 2003/09/09 22:55:01 rap Exp $
Author:
jdj

Field Summary
protected  int _capabilities
           
protected  String _name
           
 
Constructor Summary
Capability(String name, int capabilities)
          Constructor
 
Method Summary
 String getCapabilities()
          Accessor method to get the string representation of the capabilities.
 String getName()
          Accessor method to get the name of the object associated with this set of capabilities.
 boolean isDefined(int cmdType)
          Method to return true if the capability is defined for this session and file type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

protected String _name

_capabilities

protected int _capabilities
Constructor Detail

Capability

public Capability(String name,
                  int capabilities)
Constructor

Parameters:
name - the string object name
capabilities - the integer capabilities bit vector.
Method Detail

getName

public final String getName()
Accessor method to get the name of the object associated with this set of capabilities.

Returns:
the object name

getCapabilities

public String getCapabilities()
Accessor method to get the string representation of the capabilities. For example, "list,get,add".

Returns:
the string contains the list of capabilities

isDefined

public boolean isDefined(int cmdType)
Method to return true if the capability is defined for this session and file type.

Parameters:
cmdType - the command type
Returns:
true if the capability is defined, false othewise.