FileSystemRightsEditor.java
package com.goldencode.p2j.admin.client.editors;
import com.goldencode.p2j.concurrent.*;
import com.goldencode.p2j.security.*;
public class FileSystemRightsEditor
extends BitFlagsRightsEditor
{
/**
* Default constructor.
*/
public FileSystemRightsEditor()
{
super(true);
}
/**
* Returns the compatible resource type name.
*
* @return Resource type name.
*/
public static String getResourceType()
{
return "file-system";
}
/**
* Creates an instance of the <code>Rights</code>, which does not take any input and is
* considered a default starting point in editing.
*
* @return An instance of <code>Rights</code>.
*/
public Rights createDefaultRights()
{
return new FileSystemRights();
}
/**
* Creates an instance of the <code>Rights</code> configured using the given input.
*
* @param perms
* The permissions.
*
* @return An instance of <code>Rights</code>.
*/
protected Rights createPopulatedRights(BitSet perms)
{
return new FileSystemRights(perms);
}
/**
* Obtains the window title for the editor.
*
* @return The title.
*/
protected String getTitle()
{
return "File System Rights";
}
}