public class MetadataExposureServiceImpl extends Object implements MetadataExposureService
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected String |
CONFIG_PREFIX |
protected Map<String,Map<String,Set<String>>> |
hiddenElementMaps |
protected Map<String,Set<String>> |
hiddenElementSets |
protected org.apache.log4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
MetadataExposureServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init()
Loads maps from configuration unless it's already done.
|
boolean |
isHidden(Context context,
String schema,
String element,
String qualifier)
Returns whether the given metadata field should be exposed (visible).
|
protected boolean |
isInitialized()
Returns whether the maps from configuration have already been loaded
into the hiddenElementSets property.
|
protected org.apache.log4j.Logger log
protected final String CONFIG_PREFIX
@Autowired(required=true) protected AuthorizeService authorizeService
public boolean isHidden(Context context, String schema, String element, String qualifier) throws SQLException
MetadataExposureServiceisHidden in interface MetadataExposureServicecontext - DSpace contextschema - metadata field schema (namespace), e.g. "dc"element - metadata field elementqualifier - metadata field qualifierSQLException - if database errorprotected boolean isInitialized()
protected void init()
Copyright © 2017 DuraSpace. All rights reserved.