ScriptRegistryService.java revision 73db7653fd150e027270e0e9cc9f421ea3ce6681
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013 ForgeRock AS. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/**
*
* @author Laszlo Hordos
*/
@Properties({
@References({
static {
}
}
// TODO Move to public package
// Public Constants
/**
* Setup logging for the {@link ScriptRegistryService}.
*/
// private static final LocalizedLogger logger =
// LocalizedLogger.getLocalizedLogger(ScriptRegistryService.class);
}
if (properties.isMap()) {
continue;
}
}
}
try {
} catch (ScriptException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
}
/*
* manifestWatcher = new BundleWatcher<ManifestEntry>(context, new
* ScriptEngineManifestScanner(), null); manifestWatcher.start();
*/
}
if (properties.isMap()) {
continue;
}
}
}
}
}
}
if (null != manifestWatcher) {
}
}
}
super.setPersistenceConfig(null);
}
// encrypt(any value, string cipher, string alias)
static final long serialVersionUID = 1L;
throws ResourceException, NoSuchMethodException {
} else {
"encrypt", arguments));
}
} else {
"encrypt", arguments));
}
} else {
"encrypt", arguments));
}
try {
} catch (JsonCryptoException e) {
throw new InternalServerErrorException(e.getMessage(), e);
}
} else {
"encrypt", arguments));
}
}
});
// decrypt(any value)
static final long serialVersionUID = 1L;
throws ResourceException, NoSuchMethodException {
return cryptoService
} else {
"decrypt", arguments));
}
}
});
// isEncrypted(any value)
static final long serialVersionUID = 1L;
throws ResourceException, NoSuchMethodException {
} else {
"isEncrypted", arguments));
}
}
});
}
}
}
}
}
}
throws ResourceException, NoSuchMethodException {
boolean useCache = false;
}
}
if (useCache) {
}
}
return result;
} else {
}
}
},
throws ResourceException, NoSuchMethodException {
}
}
},
throws ResourceException, NoSuchMethodException {
}
}
},
throws ResourceException, NoSuchMethodException {
}
}
};
static final long serialVersionUID = 1L;
}
// ----- Implementation of RequestHandler interface
| Pattern.UNICODE_CASE);
try {
.getContent().asMap()))));
} else {
throw new ServiceUnavailableException();
}
} else {
throw new NotSupportedException("Unrecognized action ID '"
}
} else {
final ResourceException e =
"Actions are not supported for resource collections");
handler.handleError(e);
}
} catch (final ResourceException e) {
handler.handleError(e);
} catch (Exception e) {
}
}
final QueryResultHandler handler) {
try {
}
}
} else {
}
/*
* } catch (final ResourceException e) { handler.handleError(e);
*/
} catch (Exception e) {
}
}
try {
} else {
}
/*
* } catch (final ResourceException e) { handler.handleError(e);
*/
} catch (Exception e) {
}
}
throws NotFoundException {
} else if (isRead) {
} else {
return null;
}
}
final ResourceException e =
new NotSupportedException("Create operations are not supported");
handler.handleError(e);
}
final ResourceException e =
new NotSupportedException("Delete operations are not supported");
handler.handleError(e);
}
handler.handleError(e);
}
final ResourceException e =
new NotSupportedException("Update operations are not supported");
handler.handleError(e);
}
}