List of usage examples for java.security PrivilegedActionException getException
public Exception getException()
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String getEventingServiceURL(final String path) throws RegistryException { try {// ww w. jav a 2s . c om return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return getEventingServiceURLInternal(path); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String importResource(final String suggestedPath, final String sourceURL, final org.wso2.carbon.registry.api.Resource resource) throws RegistryException { try {//from w ww . ja va 2 s. c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return importResourceInternal(suggestedPath, sourceURL, resource); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String put(final String suggestedPath, final org.wso2.carbon.registry.api.Resource resource) throws RegistryException { try {//from w w w. ja v a2 s. c om return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return putInternal(suggestedPath, resource); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public void delete(final String path) throws RegistryException { try {/* w w w .j a v a 2 s . c o m*/ AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { deleteInternal(path); return null; } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String importResource(final String suggestedPath, final String sourceURL, final Resource resource) throws RegistryException { try {// ww w . j ava 2 s . co m return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return importResourceInternal(suggestedPath, sourceURL, resource); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public void createVersion(final String path) throws RegistryException { try {//from w w w.j a va 2 s. co m AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { createVersionInternal(path); return null; } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public void restoreVersion(final String versionPath) throws RegistryException { try {/*www . ja v a 2s .co m*/ AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { restoreVersionInternal(versionPath); return null; } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Association[] getAssociations(final String resourcePath, final String associationType) throws RegistryException { try {/*from w ww . j av a2 s . c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Association[]>() { @Override public Association[] run() throws Exception { return getAssociationsInternal(resourcePath, associationType); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public void applyTag(final String resourcePath, final String tag) throws RegistryException { try {/*from w w w . java 2 s. c o m*/ AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { applyTagInternal(resourcePath, tag); return null; } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public void removeTag(final String path, final String tag) throws RegistryException { try {//w w w . j a v a2 s . c om AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { removeTagInternal(path, tag); return null; } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }