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 java.lang.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
 java.lang.String describeMetadata()
          Will return a JSON string description of an extending classes' fields.
 java.lang.String get(java.lang.String property)
          Retrieves a given property for this security object.
 java.lang.String getRecordId()
           
 java.lang.String getSource()
           
 void set(java.lang.String property, java.lang.String value)
          Sets a given property for this security object.
 void setRecordId(java.lang.String newid)
           
 void setSource(java.lang.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 java.lang.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 java.lang.String get(java.lang.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(java.lang.String property,
                      java.lang.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(java.lang.String newid)
Specified by:
setRecordId in interface AccessControlSchema

getRecordId

public java.lang.String getRecordId()
Specified by:
getRecordId in interface AccessControlSchema

setSource

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

getSource

public java.lang.String getSource()
Specified by:
getSource in interface AccessControlSchema


Copyright © 2009-2013. All Rights Reserved.