com.cafesoft.cams.access
Interface ResourceType


public interface ResourceType

Defines a type of resource protected by the CamsServer.

Since:
7/30/03

Method Summary
 long getActionMask(String action)
          Get the action mask for an action.
 String[] getActions()
          Get the available actions.
 String getDesc()
          Get the description.
 String getName()
          Get the name.
 

Method Detail

getName

public String getName()
Get the name.

Returns:
the name of the ResourceType.

getDesc

public String getDesc()
Get the description.

Returns:
the description of the ResourceType.

getActions

public String[] getActions()
Get the available actions.

Returns:
an array of Strings containing all valid actions, or a zero length array of Strings if no valid actions exist.

getActionMask

public long getActionMask(String action)
                   throws UnknownActionException
Get the action mask for an action.

Parameters:
action - the action to get the mask for.
Returns:
a long value that represent the numerical representation of that action.
Throws:
UnknownActionException - if action is not a valid action.


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.