org.esupportail.portal.channels.CStockage.provider
Class ResourceControl

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.provider.ResourceControl

public class ResourceControl
extends java.lang.Object

Id: ResourceControl.java,v 1.0
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: ResourceControl
Original Author: Sébastien Gougeon
Class used as a util tool


Field Summary
protected static Log log
          Logger object
 
Constructor Summary
ResourceControl()
           
 
Method Summary
static boolean isWellFormed(java.lang.String name)
          Check if the resource name is well formed
accept all string that begining by _ a-z A-Z 0-9 àäâãéêèëîïìôöòõûüùçñÀÄÂÃÉÈËÊÌÏÎÒÖÔÕÙÜÛÇÑ
deny string that begining by .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Log log
Logger object

Constructor Detail

ResourceControl

public ResourceControl()
Method Detail

isWellFormed

public static boolean isWellFormed(java.lang.String name)
                            throws PropertiesException
Check if the resource name is well formed
accept all string that begining by _ a-z A-Z 0-9 àäâãéêèëîïìôöòõûüùçñÀÄÂÃÉÈËÊÌÏÎÒÖÔÕÙÜÛÇÑ
deny string that begining by .
after all characters a-z A-Z 0-9 àäâãéêèëîïìôöòõûüùçñÀÄÂÃÉÈËÊÌÏÎÒÖÔÕÙÜÛÇÑ . _ - are accept, others are denied

Parameters:
name - name of the file/directory to verify
Returns:
true if file/directory is well formed else false
Throws:
PropertiesException