public void add(Permission perm){
  if (!(perm instanceof ISPermission)) {
    String objs[]={perm.toString()};
    throw (new IllegalArgumentException(ResBundleUtils.getString("invalid_permission",objs)));
  }
  if (isReadOnly()) {
    throw new SecurityException(ResBundleUtils.getString("readonly_permission_collection"));
  }
  debug.message("ISPermissionCollection::add(perm) called");
  if (debug.messageEnabled()) {
    debug.message("ISPermissionCollection::perm:" + perm.toString());
  }
  perms.put(perm.getName(),perm);
}

public void add ( Permission perm ) { if ( ! ( perm instanceof ISPermission ) ) { String objs [ ] = { perm . toString ( ) } ; throw ( new IllegalArgumentException ( ResBundleUtils . getString ( "invalid_permission" , objs ) ) ) ; } if ( isReadOnly ( ) ) { throw new SecurityException ( ResBundleUtils . getString ( "readonly_permission_collection" ) ) ; } debug . message ( "ISPermissionCollection::add(perm) called" ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "ISPermissionCollection::perm:" + perm . toString ( ) ) ; } perms . put ( perm . getName ( ) , perm ) ; }
adds a permission object to the current collection of ispermission objects .
