code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public short[] loadShortArray() throws IOException {
if (!_file.exists() || _file.length() == 0) {
return null;
}
Chronos c = new Chronos();
DataReader r = IOFactory.createDataReader(_file, _type);
try {
r.open();
r.position(DATA_START_POSITION);
short[] ar... | java |
public synchronized <T extends EntryValue> void update(List<Entry<T>> entryList)
throws IOException {
Chronos c = new Chronos();
// Sort values by position in the array file
T[] values = EntryUtility.sortEntriesToValues(entryList);
if (values == null || values.length == 0) return;
// Obt... | java |
public void setWaterMarks(long lwmScn, long hwmScn) throws IOException {
if(lwmScn <= hwmScn) {
writeHwmScn(hwmScn);
_writer.flush();
writeLwmScn(lwmScn);
_writer.flush();
} else {
throw new IOException("Invalid water marks: lwmScn=" + lwmScn + " hwmScn=" + ... | java |
public synchronized void resetAll(long value) throws IOException {
if(_elementSize != 8) {
throw new IOException("Operation aborted: elementSize=" + _elementSize);
}
_writer.flush();
_writer.position(DATA_START_POSITION);
for(int i = 0; i < this._arrayLength; i++) {
... | java |
public synchronized void setArrayLength(int arrayLength, File renameToFile) throws IOException {
if(arrayLength < 0) {
throw new IOException("Invalid array length: " + arrayLength);
}
if(this._arrayLength == arrayLength) return;
// Flush all the changes.
this.flush(... | java |
public static Usage getUsage(String cobolUsage) {
if (cobolUsage == null) {
return null;
}
if (cobolUsage.equals(BINARY)) {
return Usage.BINARY;
} else if (cobolUsage.equals("COMP")) {
return Usage.BINARY;
} else if (cobolUsage.equals("COMPUTAT... | java |
public static XDMAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (XDMAuditor)ctx.getAuditor(XDMAuditor.class);
} | java |
public void auditPortableMediaImport(
RFC3881EventOutcomeCodes eventOutcome,
String submissionSetUniqueId,
String patientId,
List<CodedValueType> purposesOfUse)
{
if (!isAuditorEnabled()) {
return;
}
ImportEvent importEvent = new ImportEvent(false, eventOutcome, new IHETransactionEventTy... | java |
public void auditPortableMediaCreate(
RFC3881EventOutcomeCodes eventOutcome,
String submissionSetUniqueId,
String patientId,
List<CodedValueType> purposesOfUse)
{
if (!isAuditorEnabled()) {
return;
}
ExportEvent exportEvent = new ExportEvent(true, eventOutcome, new IHETransactionEventType... | java |
public long tick() {
long tick = System.currentTimeMillis();
long diff = tick - _lastTick;
_lastTick = tick;
return diff;
} | java |
public String translate(final Reader cobolReader,
final String targetNamespace, final String xsltFileName)
throws XsdGenerationException {
try {
if (_log.isDebugEnabled()) {
_log.debug("Translating with options: {}", getConfig()
.toStri... | java |
public List < CobolDataItem > toModel(final Reader cobolReader)
throws RecognizerException {
return emitModel(parse(lex(clean(cobolReader))));
} | java |
public String clean(final Reader cobolReader) throws CleanerException {
if (_log.isDebugEnabled()) {
_log.debug("1. Cleaning COBOL source code");
}
switch (getConfig().getCodeFormat()) {
case FIXED_FORMAT:
CobolFixedFormatSourceCleaner fixedCleaner = new CobolFixe... | java |
public CommonTokenStream lex(final String cleanedCobolSource)
throws RecognizerException {
if (_log.isDebugEnabled()) {
_log.debug("2. Lexing COBOL source code: {}", cleanedCobolSource);
}
try {
CobolStructureLexer lex = new CobolStructureLexerImpl(
... | java |
public CommonTree parse(final CommonTokenStream tokens)
throws RecognizerException {
if (_log.isDebugEnabled()) {
_log.debug("3. Parsing tokens: {}", tokens.toString());
}
try {
CobolStructureParser parser = new CobolStructureParserImpl(tokens,
... | java |
public List < CobolDataItem > emitModel(final CommonTree ast)
throws RecognizerException {
List < CobolDataItem > cobolDataItems = new ArrayList < CobolDataItem >();
if (_log.isDebugEnabled()) {
_log.debug("4. Emitting Model from AST: {}",
((ast == null) ? "nu... | java |
public static List < String > getNonUniqueCobolNames(
final List < CobolDataItem > cobolDataItems) {
List < String > cobolNames = new ArrayList < String >();
List < String > nonUniqueCobolNames = new ArrayList < String >();
for (CobolDataItem cobolDataItem : cobolDataItems) {
... | java |
private Socket getTLSSocket(InetAddress destination, int port) throws Exception
{
String key = destination.getHostAddress() + ":" + port;
synchronized (socketMap){
Socket socket = socketMap.get(key);
if (socket == null){
// create a new one
NodeAuthModuleContext nodeAuthContext = NodeAuthModuleContex... | java |
@Override
public synchronized void clear() {
File[] files = mRootDirectory.listFiles();
if (files != null) {
for (File file : files) {
file.delete();
}
}
mEntries.clear();
mTotalSize = 0;
//todo add queue markers
//JusLo... | java |
@Override
public synchronized Entry get(String key) {
CacheHeader entry = mEntries.get(key);
// if the entry does not exist, return.
if (entry == null) {
return null;
}
File file = getFileForKey(key);
CountingInputStream cis = null;
try {
... | java |
@Override
public synchronized void initialize() {
if (!mRootDirectory.exists()) {
if (!mRootDirectory.mkdirs()) {
//silently ignoring no cache is not good so we throw and let the user decide
// what
// to do
throw new IllegalStateEx... | java |
public MultipartBuilder addPart(NetworkRequest part) {
if (part == null) {
throw new NullPointerException("part == null");
}
parts.add(part);
return this;
} | java |
public NetworkRequest build() {
if (parts.isEmpty()) {
throw new IllegalStateException("Multipart body must have at least one part.");
}
MultipartRequest mrb = new MultipartRequest(type, boundary, parts);
Buffer bb = new Buffer();
try {
mrb.writeOrCountByt... | java |
protected void addNamespaceContext() {
NamespaceMap prefixmap = new NamespaceMap();
NamespacePrefixList npl = getXsd().getNamespaceContext();
if (npl == null) {
/* We get an NPE if we don't add this. */
prefixmap.add("", XMLConstants.W3C_XML_SCHEMA_NS_URI);
} else... | java |
public static String getErrorMessage(
final Logger log,
final BaseRecognizer recognizer,
final RecognitionException e,
final String superMessage,
final String[] tokenNames) {
if (log.isDebugEnabled()) {
List < ? > stack = BaseRecognizer.get... | java |
public static String makeUserMsg(final RecognitionException e, final String msg) {
if (e instanceof NoViableAltException) {
return msg.replace("no viable alternative at", "unrecognized");
} else if (e instanceof UnwantedTokenException) {
return msg.replace("extraneous input", "un... | java |
protected void initIndexPersistableListener() {
_index.setPersistableListener(new PersistableListener() {
@Override
public void beforePersist() {
try {
PersistableListener l = _listener;
if(l != null) l.beforePersist();
... | java |
public void populate() throws Exception {
for (int i = 0, cnt = _partition.getIdCount(); i < cnt; i++) {
int memberId = _partition.getIdStart() + i;
_partition.set(memberId, createDataForMember(memberId), System.nanoTime());
}
_partition.sync();
} | java |
public void doRandomReads(int readCnt) {
Random rand = new Random();
int idStart = _partition.getIdStart();
int idCount = _partition.getIdCount();
for (int i = 0; i < readCnt; i++) {
int memberId = idStart + rand.nextInt(idCount);
System.out.printf("MemberId=%-10d... | java |
public static void main(String[] args) {
try {
// Parse arguments: homeDir idStart idCount
File homeDir = new File(args[0]);
int idStart = Integer.parseInt(args[1]);
int idCount = Integer.parseInt(args[2]);
// Create an instance of KratiDa... | java |
@Override
public synchronized Clock updateHWMark(String source, long hwm) {
_sourceWaterMarks.saveHWMark(source, hwm);
return current();
} | java |
public static PDQConsumerAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (PDQConsumerAuditor)ctx.getAuditor(PDQConsumerAuditor.class);
} | java |
public void auditPDQQueryEvent(RFC3881EventOutcomeCodes eventOutcome,
String pixManagerUri, String receivingFacility, String receivingApp,
String sendingFacility, String sendingApp,
String hl7MessageControlId, String hl7QueryParameters,
String[] patientIds)
{
if (!isAuditorEnabled()) {
return;
}
... | java |
public String formatKey(URI uri) throws URISyntaxException
{
if (uri == null) {
throw new URISyntaxException("","URI specified is null");
}
return formatKey(uri.getHost(), uri.getPort());
} | java |
protected void submitSegmentIndexBuffer() {
if(_sibEnabled && !_sib.isDirty()) {
_sib.setSegmentId(_segment.getSegmentId());
_sib.setSegmentLastForcedTime(_segment.getLastForcedTime());
_segmentManager.submit(_sib);
} else {
_segmentManager.remove(_sib);
... | java |
protected void init() {
try {
// Initialize the current working segment
_segment = _segmentManager.nextSegment();
// Segment index buffer is enabled by default!
_sib = _segmentManager.openSegmentIndexBuffer(_segment.getSegmentId());
if(!_s... | java |
protected void decrOriginalSegmentLoad(int index) {
try {
long address = getAddress(index);
int segPos = _addressFormat.getOffset(address);
int segInd = _addressFormat.getSegment(address);
int length = _addressFormat.getDataSize(address);
... | java |
@Override
public byte[] get(int index) {
rangeCheck(index);
try {
long address = getAddress(index);
int segPos = _addressFormat.getOffset(address);
int segInd = _addressFormat.getSegment(address);
// no data found
if(s... | java |
public int read(int index, byte[] dst) {
rangeCheck(index);
try {
long address = getAddress(index);
int segPos = _addressFormat.getOffset(address);
int segInd = _addressFormat.getSegment(address);
// no data found
if(segPo... | java |
@Override
public int transferTo(int index, WritableByteChannel channel) {
rangeCheck(index);
try {
long address = getAddress(index);
int segPos = _addressFormat.getOffset(address);
int segInd = _addressFormat.getSegment(address);
... | java |
@Override
public synchronized void clear() {
if(isOpen()) {
_compactor.clear();
_addressArray.clear();
_segmentManager.clear();
this.init();
}
} | java |
@Override
public synchronized void close() throws IOException {
if (_mode == Mode.CLOSED) {
return;
}
_mode = Mode.CLOSED;
try {
// THE CALLS ORDERED.
_compactor.shutdown(); // shutdown compactor
/* Cal... | java |
@Override
public synchronized void open() throws IOException {
if (_mode == Mode.OPEN) {
return;
}
try {
_addressArray.open();
_segmentManager.open();
_compactor.start();
init();
_mode = Mode.OPEN;
... | java |
protected void fireBeforePersist() {
PersistableListener l = _listener;
if(l != null) {
try {
l.beforePersist();
} catch(Exception e) {
_log.error("failure on calling beforePersist", e);
}
}
} | java |
protected void fireAfterPersist() {
PersistableListener l = _listener;
if(l != null) {
try {
l.afterPersist();
} catch(Exception e) {
_log.error("failure on calling afterPersist", e);
}
}
} | java |
public String cleanFixedLine(final String line) {
StringBuilder cleanedLine = new StringBuilder();
int length = line.length();
/* Clear sequence numbering */
for (int i = 0; i < _startColumn - 1; i++) {
cleanedLine.append(" ");
}
/* Trim anything beyond end... | java |
private void freeCompactedSegments() {
SegmentManager segManager = _dataArray.getSegmentManager();
if(segManager == null) return;
while(!_freeQueue.isEmpty()) {
Segment seg = _freeQueue.remove();
try {
segManager.freeSegment(seg);
} ca... | java |
private boolean compact() throws IOException {
try {
final boolean sibEnabled = _dataArray.isSibEnabled();
_segTarget = _dataArray.getSegmentManager().nextSegment();
for(Segment seg : _segSourceList) {
if(!_enabled) {
try {
... | java |
private boolean compact(Segment segment, SegmentIndexBuffer sibSource, Segment segTarget) throws IOException {
Segment segSource = segment;
int segSourceId = segSource.getSegmentId();
int segTargetId = segTarget.getSegmentId();
Chronos c = new Chronos();
if(!segment.can... | java |
@Override
public void run() {
while(_enabled) {
if(_newCycle.compareAndSet(true, false)) {
// One and only one compactor is at work.
_lock.lock();
try {
reset();
_state = State.INIT;
... | java |
protected ByteBuffer getByteBuffer(int bufferLength) {
if(_buffer == null) {
_buffer = ByteBuffer.wrap(new byte[bufferLength]);
_log.info("ByteBuffer allocated for buffering");
}
return _buffer;
} | java |
private void toStringRenames(final StringBuilder sb) {
if (getRenamesSubject() != null) {
sb.append(',');
sb.append("renamesSubject:" + getRenamesSubject());
}
if (getRenamesSubjectRange() != null) {
sb.append(',');
sb.append("renamesSubjectRange:"... | java |
private void toStringCondition(final StringBuilder sb) {
if (getConditionLiterals().size() > 0) {
toStringList(sb, getConditionLiterals(), "conditionLiterals");
}
if (getConditionRanges().size() > 0) {
toStringList(sb, getConditionRanges(), "conditionRanges");
}
... | java |
private void toStringList(final StringBuilder sb, final List < ? > list,
final String title) {
sb.append(',');
sb.append(title + ":[");
boolean first = true;
for (Object child : list) {
if (!first) {
sb.append(",");
} else {
... | java |
@Override
public void reinitValue(DataReader in, EntryValueInt value) throws IOException {
value.reinit(in.readInt(), /* array position */
in.readInt(), /* data value */
in.readLong() /* SCN value */);
} | java |
private static void initializeDefaultModules(SecurityContext context)
{
if (context.isInitialized()) {
return;
}
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("SecurityContext default module initializer starting");
}
String moduleName;
// Loop through the module names
for (int i=0; i<DEFAULT... | java |
public void setAuditSourceId(String sourceId, String enterpriseSiteId)
{
setAuditSourceId(sourceId, enterpriseSiteId, (RFC3881AuditSourceTypes[])null);
} | java |
public void setAuditSourceId(String sourceId, String enterpriseSiteId, RFC3881AuditSourceTypes[] typeCodes)
{
addAuditSourceIdentification(sourceId, enterpriseSiteId, typeCodes);
} | java |
public void setRetention(long duration, TimeUnit timeUnit) {
this._duration = Math.max(1, duration);
this._timeUnit = timeUnit;
long millis = TimeUnit.MILLISECONDS == timeUnit ?
_duration : TimeUnit.MILLISECONDS.convert(_duration, timeUnit);
_timeMillis = Math.ma... | java |
private void expand(int i) {
/* Can the buffer handle @i more bytes, if not expand it */
if (count + i <= buf.length) {
return;
}
byte[] newbuf = mPool.getBuf((count + i) * 2);
System.arraycopy(buf, 0, newbuf, 0, count);
mPool.returnBuf(buf);
buf = new... | java |
protected void checkCobolSourceFile(final File cobolSourceFile)
throws IOException {
if (cobolSourceFile == null) {
throw new IOException("You must provide a COBOL source file");
}
if (!cobolSourceFile.exists()) {
throw new IOException("COBOL source file " + ... | java |
protected void checkTarget(final File target) throws IOException {
if (target == null) {
throw new IOException("You must provide a target directory or file");
}
if (!target.exists()) {
String extension = FilenameUtils.getExtension(target.getName());
if (extens... | java |
protected String getUniqueTargetNamespace(String targetNamespacePrefix,
final String baseName) throws IOException {
if (targetNamespacePrefix == null
|| targetNamespacePrefix.length() == 0) {
return null;
}
if (baseName == null || baseName.length() == 0)... | java |
protected void auditQueryEvent(boolean systemIsSource,
IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome,
String sourceFacility, String sourceApp, String sourceAltUserId, String sourceNetworkId,
String destinationFacility, String destinationApp, String destinationAltUserId, Strin... | java |
public static AuditorModuleContext getContext()
{
SecurityContext securityContext = SecurityContextFactory.getSecurityContext();
if (!securityContext.isInitialized()) {
securityContext.initialize();
}
AbstractModuleContext moduleContext = securityContext.getModuleContext(CONTEXT_ID);
if (null == module... | java |
public AuditMessageSender getSender()
{
if (customSender == null){
String transport = AuditorModuleContext.getContext().getConfig().getAuditRepositoryTransport();
if (transport.equalsIgnoreCase("TLS") ) {
return new TLSSyslogSenderImpl();
} else if (transport.equalsIgnoreCase("UDP") ){
return new... | java |
public IHEAuditor getAuditor(String className, boolean useContextAuditorRegistry)
{
return getAuditor(AuditorFactory.getAuditorClassForClassName(className),useContextAuditorRegistry);
} | java |
public static XDSRegistryAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (XDSRegistryAuditor)ctx.getAuditor(XDSRegistryAuditor.class);
} | java |
public void auditRegistryQueryEvent(
RFC3881EventOutcomeCodes eventOutcome,
String consumerUserId, String consumerUserName, String consumerIpAddress,
String registryEndpointUri,
String adhocQueryRequestPayload,
String patientId)
{
if (!isAuditorEnabled()) {
return;
}
auditQueryEvent(false,
... | java |
public void auditRegistryStoredQueryEvent(
RFC3881EventOutcomeCodes eventOutcome,
String consumerUserId, String consumerUserName, String consumerIpAddress,
String registryEndpointUri,
String storedQueryUUID, String adhocQueryRequestPayload, String homeCommunityId,
String patientId, List<CodedValueType> ... | java |
protected void auditRegisterEvent(
IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome,
String repositoryUserId, String repositoryIpAddress,
String userName,
String registryEndpointUri,
String submissionSetUniqueId,
String patientId,
List<CodedValueTy... | java |
private void fixKeyManagers() {
// If the key manager factory is null, do not continue
if (null == keyManagerFactory || null == keyManagerFactory.getKeyManagers()) {
return;
}
KeyManager[] defaultKeyManagers = keyManagerFactory.getKeyManagers();
KeyManager[] newKeyMan... | java |
@Override
public void init(FilterConfig filterConfig) throws ServletException {
super.init(filterConfig);
int reloadTime = readInt(filterConfig.getInitParameter(INIT_PARAM_RELOAD_TIME), 0);
this.resetTime = readInt(filterConfig.getInitParameter(INIT_PARAM_RESET_TIME), resetTime);
t... | java |
protected String generateCacheKeyForTheRequest(HttpServletRequest request) {
StringBuilder cacheKey = new StringBuilder();
cacheKey.append(request.getRequestURI());
String[] keyAttributes = this.cacheKeyFormat.split(",");
for (String attr : keyAttributes) {
String keyAttr = a... | java |
protected void init() throws IOException {
try {
long lwmScn = _arrayFile.getLwmScn();
long hwmScn = _arrayFile.getHwmScn();
if (hwmScn < lwmScn) {
throw new IOException(_arrayFile.getAbsolutePath() + " is corrupted: lwmScn=" + lwmScn + " hwmScn=" + hwmScn);
... | java |
private String chooseClientAliasForKey(String preferredAlias, String keyType, Principal[] issuers, Socket socket)
{
String[] aliases = getClientAliases(keyType, issuers);
if (aliases != null && aliases.length > 0) {
for (int i=0; i<aliases.length;i++) {
if (preferredAlias.equals(aliases[i])) {
return ... | java |
private static String simpleHashOf(String resourceRealPath) {
if (resourceRealPath == null) return null;
File resource = new File(resourceRealPath);
if (!resource.exists()) return null;
long lastModified = resource.lastModified();
long size = resource.length();
return Str... | java |
public static String getParentPath(String path) {
if (path == null) return null;
path = path.trim();
if (path.endsWith(PATH_ROOT) && path.length() > 1) {
path = path.substring(0, path.length() - 1);
}
int lastIndex = path.lastIndexOf(PATH_ROOT);
if (path.lengt... | java |
protected Socket createSocket(String host, int port) throws SocketException, UnknownHostException
{
Socket socket = null;
int retries = 0;
// Loop to get a connection or until we've exhausted number of retries
Throwable cause = null;
while (retries < CONTEXT.getConfig().getS... | java |
protected Socket createSocketFromFactory(SocketFactory factory, String host, int port) throws IOException
{
if (logger.isDebugEnabled()) {
logger.debug("Connecting to " + host +" on port " + port +
" (timeout: " + CONTEXT.getConfig().getConnectTimeout() + " ms) using factory "+ factory.getClass(... | java |
public boolean isLineOfCode(final String line) {
if (line.length() < getIndicatorAreaPos() + 1) {
return false;
}
/* Remove white space lines */
if (line.trim().length() == 0) {
return false;
}
/* Remove comments and special lines */
if (... | java |
public String cleanLine(final String line) {
String cleanedLine = extendedCleanLine(line);
/* Right trim, no need to over burden the lexer with spaces */
cleanedLine = ("a" + cleanedLine).trim().substring(1);
return cleanedLine;
} | java |
protected boolean isArgument(final String fragment) {
String s = fragment.trim();
if (s.length() > 0) {
return s.charAt(s.length() - 1) != COBOL_DELIMITER;
}
return false;
} | java |
public static ImageListener getImageListener(final ImageView view,
final int defaultImageResId, final int errorImageResId) {
return new ImageListener() {
@Override
public void onError(JusError error) {
if (errorImageResId !... | java |
public ImageContainer get(String requestUrl, final ImageListener listener, final Object tag) {
return get(requestUrl, listener, 0, 0, tag);
} | java |
protected void onGetImageSuccess(String cacheKey, Bitmap response) {
// cache the image that was fetched.
imageCache.putBitmap(cacheKey, response);
// remove the request from the list of in-flight requests.
BatchedImageRequest request = inFlightRequests.remove(cacheKey);
if (re... | java |
protected void onGetImageError(String cacheKey, JusError error) {
// Notify the requesters that something failed via a null result.
// Remove this request from the list of in-flight requests.
BatchedImageRequest request = inFlightRequests.remove(cacheKey);
if (request != null) {
... | java |
private void batchResponse(String cacheKey, BatchedImageRequest request) {
batchedResponses.put(cacheKey, request);
// If we don't already have a batch delivery runnable in flight, make a new one.
// Note that this will be used to deliver responses to all callers in batchedResponses.
if ... | java |
private static String getCacheKey(String url, int maxWidth, int maxHeight, ScaleType scaleType) {
return "#W" + maxWidth + "#H" + maxHeight + "#S" + scaleType.ordinal() + url;
} | java |
public static XDSSourceAuditor getAuditor()
{
AuditorModuleContext ctx = AuditorModuleContext.getContext();
return (XDSSourceAuditor)ctx.getAuditor(XDSSourceAuditor.class);
} | java |
public void auditProvideAndRegisterDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String submissionSetUniqueId,
String patientId)
{
if (!isAuditorEnabled()) {
return;
}
auditProvideAndRegisterEvent( new IHETransactionEventTypeCodes... | java |
public void auditProvideAndRegisterDocumentSetBEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String submissionSetUniqueId,
String patientId,
List<CodedValueType> purposesOfUse,
List<CodedValueType> userRoles)
{
if (!isAuditorEnab... | java |
protected void auditProvideAndRegisterEvent(
IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String submissionSetUniqueId,
String patientId,
List<CodedValueType> purposesOfUse,
List<CodedValueType> u... | java |
public void addNodeActiveParticipant(String userId, String altUserId, String userName, String networkId)
{
addActiveParticipant(
userId,
altUserId,
userName,
true,
Collections.singletonList(new DICOMActiveParticipantRoleIdCodes.Application()),
networkId);
} | java |
public static String buildUrlQuery(String baseUrl, Map<String, String> params) {
if (baseUrl.isEmpty() || params.isEmpty()) {
return baseUrl;
} else {
String query = baseUrl;
query += QUERY_STRING_SEPARATOR;
for (String key : params.keySet()) {
query += key;
query += PAIR_SEPARATOR;
query +... | java |
protected void setAuditMessageElements(EventIdentificationType eventId, ActiveParticipantType[] participants,
AuditSourceIdentificationType[] sourceIds, ParticipantObjectIdentificationType[] objectIds) {
AuditMessage auditMessage = getAuditMessage();
auditMessa... | java |
protected EventIdentificationType setEventIdentification(
RFC3881EventOutcomeCodes outcome,
RFC3881EventActionCodes action,
CodedValueType id, CodedValueType[] type,
List<CodedValueType> purposesOfUse) {
EventIdentificationType eventBlock = new EventIdentification... | java |
protected ActiveParticipantType addActiveParticipant(String userID, String altUserID, String userName,
Boolean userIsRequestor, List<CodedValueType> roleIdCodes, String networkAccessPointID, RFC3881NetworkAccessPointTypeCodes networkAccessPointTypeCode) {
... | java |
protected AuditSourceIdentificationType addAuditSourceIdentification(String sourceID,
String enterpriseSiteID,
RFC3881AuditSourceTypeCodes... typeCodes) {
AuditSource... | java |
public ParticipantObjectIdentificationType addParticipantObjectIdentification(CodedValueType objectIDTypeCode,
String objectName, byte[] objectQuery, List<TypeValuePairType> objectDetail,
... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.