com.googlecode.fascinator.common.access
Class GenericSchema

java.lang.Object
  extended by com.googlecode.fascinator.common.access.GenericSchema
All Implemented Interfaces:
AccessControlSchema

public class GenericSchema
extends Object
implements AccessControlSchema

A basic security schema, does not define its metadata schema, that is left to extending classes, but creates access methods against an unknown schema.

Author:
Greg Pendlebury

Constructor Summary
GenericSchema()
           
 
Method Summary
 String describeMetadata()
          Will return a JSON string description of an extending classes' fields.
 String get(String property)
          Retrieves a given property for this security object.
 String getRecordId()
           
 String getSource()
           
 void set(String property, String value)
          Sets a given property for this security object.
 void setRecordId(String newid)
           
 void setSource(String plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSchema

public GenericSchema()
Method Detail

describeMetadata

public final String describeMetadata()
Will return a JSON string description of an extending classes' fields.

Specified by:
describeMetadata in interface AccessControlSchema
Parameters:
property - The class field to retrieve
Returns:
The value of the property

get

public final String get(String property)
Retrieves a given property for this security object.

Specified by:
get in interface AccessControlSchema
Parameters:
property - The class field to retrieve
Returns:
The value of the property

set

public final void set(String property,
                      String value)
Sets a given property for this security object.

Specified by:
set in interface AccessControlSchema
Parameters:
property - The class field to retrieve

setRecordId

public void setRecordId(String newid)
Specified by:
setRecordId in interface AccessControlSchema

getRecordId

public String getRecordId()
Specified by:
getRecordId in interface AccessControlSchema

setSource

public void setSource(String plugin)
Specified by:
setSource in interface AccessControlSchema

getSource

public String getSource()
Specified by:
getSource in interface AccessControlSchema


Copyright © 2009-2013. All Rights Reserved.