List of usage examples for java.security PrivilegedActionException getException
public Exception getException()
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Resource newResource() throws RegistryException { try {/*from w w w . j a v a 2s.c om*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Resource>() { @Override public Resource run() throws Exception { return newResourceInternal(); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Collection newCollection() throws RegistryException { try {/*from w ww .j av a 2s .c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Collection>() { @Override public Collection run() throws Exception { return newCollectionInternal(); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Resource get(final String path) throws RegistryException { try {//from ww w.j a va 2s .co m return AccessController.doPrivileged(new PrivilegedExceptionAction<Resource>() { @Override public Resource run() throws Exception { return getInternal(path); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Resource getMetaData(final String path) throws RegistryException { try {// www . j a v a2 s . c om return AccessController.doPrivileged(new PrivilegedExceptionAction<Resource>() { @Override public Resource run() throws Exception { return getMetaDataInternal(path); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Collection get(final String path, final int start, final int pageSize) throws RegistryException { try {//from w w w. j ava 2 s. c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<Collection>() { @Override public Collection run() throws Exception { return getInternal(path, start, pageSize); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public boolean resourceExists(final String path) throws RegistryException { try {/*w ww. j a v a 2 s.c om*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Boolean>() { @Override public Boolean run() throws Exception { return resourceExistsInternal(path); } }); } 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 Resource resource) throws RegistryException { try {//ww w . j a va 2 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 String rename(final String currentPath, final String newName) throws RegistryException { try {/*from w ww. j av a 2 s .c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return renameInternal(currentPath, newName); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String move(final String currentPath, final String newPath) throws RegistryException { try {//ww w .j av a2 s . c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return moveInternal(currentPath, newPath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String copy(final String sourcePath, final String targetPath) throws RegistryException { try {//from w w w.jav a 2s .c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return copyInternal(sourcePath, targetPath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }