org.nees.metadata.schema
Class CompiledSchema

java.lang.Object
  extended byorg.nees.metadata.schema.Schema
      extended byorg.nees.metadata.schema.CompiledSchema

public class CompiledSchema
extends Schema

This is a schema that is compiled and stored as MetadataObjects in NMDS. This Schema will transparently fetch and decompile MetadataClasses from NMDS as required.


Constructor Summary
CompiledSchema(NMDSFacade f)
           
 
Method Summary
 void addMetadataClass(MetadataClass cls)
          Also compiles and uploads the class to NMDS.
 Identifier[] getClassIds()
           
 java.util.HashMap getClassIdTitles()
          Returns a HashMap of class titles keyed by id
 MetadataClass getMetadataClass(Identifier cId)
          Fetches the class from NMDS if required
 java.util.Collection getMetadataClasses()
          Warning: this could be a very expensive call.
 long getTTL()
           
 void setAllUsersPermissions(NMDSPermissions p)
          Set the permissions given to compiled classes for all users
 void setAllUsersPermissions(java.lang.String p)
          Set the permissions given to compiled classes for all users
 void setTTL(long t)
           
 
Methods inherited from class org.nees.metadata.schema.Schema
getRelationConstraint, getRelationConstraints, getSubclasses, getSuperclass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledSchema

public CompiledSchema(NMDSFacade f)
Method Detail

setTTL

public void setTTL(long t)

getTTL

public long getTTL()

setAllUsersPermissions

public void setAllUsersPermissions(java.lang.String p)
Set the permissions given to compiled classes for all users


setAllUsersPermissions

public void setAllUsersPermissions(NMDSPermissions p)
Set the permissions given to compiled classes for all users


addMetadataClass

public void addMetadataClass(MetadataClass cls)
Also compiles and uploads the class to NMDS.

Overrides:
addMetadataClass in class Schema
Parameters:
cls - the class to add

getMetadataClass

public MetadataClass getMetadataClass(Identifier cId)
Fetches the class from NMDS if required

Overrides:
getMetadataClass in class Schema
Parameters:
cId - the class id
Returns:
the metadata class

getMetadataClasses

public java.util.Collection getMetadataClasses()
Warning: this could be a very expensive call.

Overrides:
getMetadataClasses in class Schema

getClassIds

public Identifier[] getClassIds()
Overrides:
getClassIds in class Schema

getClassIdTitles

public java.util.HashMap getClassIdTitles()
Returns a HashMap of class titles keyed by id

Overrides:
getClassIdTitles in class Schema