context.nSubjectValues(attributeName)); values = context.getSubjectValues(attributeName); if (logger.isDebugEnabled()) { if (values != null) {
context.nSubjectValues(attributeName)); values = context.getSubjectValues(attributeName); if (logger.isDebugEnabled()) { if (values != null) {
switch(designatorType){ case AttributeDesignator.SUBJECT_TARGET: values = context.getSubjectValues(id.toString()); break; case AttributeDesignator.RESOURCE_TARGET:
/** * A "copy constructor" that creates a writable context from one that might * be read-only. */ public JournalEntryContext(Context source) { password = source.getPassword(); noOp = source.getNoOp(); now = source.now(); for (Iterator<URI> keys = source.environmentAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(environmentAttributes, key, source .getEnvironmentValues(key)); } for (Iterator<String> keys = source.subjectAttributes(); keys.hasNext();) { String key = keys.next(); storeInMap(subjectAttributes, key, source.getSubjectValues(key)); } for (Iterator<URI> keys = source.actionAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(actionAttributes, key, source.getActionValues(key)); } for (Iterator<URI> keys = source.resourceAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(resourceAttributes, key, source.getResourceValues(key)); } }
break; default: String[] values = context.getSubjectValues(name); for (String element : values) { logger
break; default: String[] values = context.getSubjectValues(name); for (String element : values) { logger
switch(designatorType){ case AttributeDesignator.SUBJECT_TARGET: values = context.getSubjectValues(id.toString()); break; case AttributeDesignator.RESOURCE_TARGET:
/** * A "copy constructor" that creates a writable context from one that might * be read-only. */ public JournalEntryContext(Context source) { password = source.getPassword(); noOp = source.getNoOp(); now = source.now(); for (Iterator<URI> keys = source.environmentAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(environmentAttributes, key, source .getEnvironmentValues(key)); } for (Iterator<String> keys = source.subjectAttributes(); keys.hasNext();) { String key = keys.next(); storeInMap(subjectAttributes, key, source.getSubjectValues(key)); } for (Iterator<URI> keys = source.actionAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(actionAttributes, key, source.getActionValues(key)); } for (Iterator<URI> keys = source.resourceAttributes(); keys.hasNext();) { URI key = keys.next(); storeInMap(resourceAttributes, key, source.getResourceValues(key)); } }