|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.dataresource.MetaDataExtractor
Base class for meta data extractors.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private static DAILogger |
LOG
|
protected SecurityContext |
mSecurityContext
|
| Constructor Summary | |
MetaDataExtractor()
|
|
| Method Summary | |
protected abstract java.lang.Object |
getMetaData(SecurityContext securityContext,
javax.xml.namespace.QName name)
Gets the meta data using the given security context to access the data resource. |
java.lang.Object |
getValue(javax.xml.namespace.QName name)
Return the value of the property with the given name. |
void |
setSecurityContext(SecurityContext sc)
Set a security context to be used if authorisation needs to be done when get/setting the value. |
void |
setValue(javax.xml.namespace.QName name,
java.lang.Object value)
Set the value of the property with the given name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static DAILogger LOG
protected SecurityContext mSecurityContext
| Constructor Detail |
public MetaDataExtractor()
| Method Detail |
public void setSecurityContext(SecurityContext sc)
PropertyCallback
setSecurityContext in interface PropertyCallbacksc - Security context.
public void setValue(javax.xml.namespace.QName name,
java.lang.Object value)
PropertyCallback
setValue in interface PropertyCallbackname - Property name.value - Property value.
public java.lang.Object getValue(javax.xml.namespace.QName name)
throws PropertyValueException
PropertyCallback
getValue in interface PropertyCallbackname - Property name.
PropertyValueException - if a problem occurs.
protected abstract java.lang.Object getMetaData(SecurityContext securityContext,
javax.xml.namespace.QName name)
throws MetaDataAuthorizationException,
MetaDataExtractionException
securityContext - User details used to access the data resource.name - Name of meta data property being sought.
MetaDataAuthorizationException - if the user is not
authorized to access the data resource meta data.
MetaDataExtractionException - if some problem occurs when
extracting the meta data.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||