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[] getVersions(final String path) throws RegistryException { try {/*from ww w . j av a2 s. c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<String[]>() { @Override public String[] run() throws Exception { return getVersionsInternal(path); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Association[] getAllAssociations(final String resourcePath) throws RegistryException { try {/* w w w .j av a2s. c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Association[]>() { @Override public Association[] run() throws Exception { return getAllAssociationsInternal(resourcePath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public TaggedResourcePath[] getResourcePathsWithTag(final String tag) throws RegistryException { try {/*from www. j av a 2s .c om*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<TaggedResourcePath[]>() { @Override public TaggedResourcePath[] run() throws Exception { return getResourcePathsWithTagInternal(tag); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Tag[] getTags(final String resourcePath) throws RegistryException { try {/*from w w w . j a v a2 s . c om*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Tag[]>() { @Override public Tag[] run() throws Exception { return getTagsInternal(resourcePath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String addComment(final String resourcePath, final Comment comment) throws RegistryException { try {/*from w w w. j ava2s . c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws Exception { return addCommentInternal(resourcePath, comment); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Comment[] getComments(final String resourcePath) throws RegistryException { try {/*from ww w.j ava2 s.co m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<Comment[]>() { @Override public Comment[] run() throws Exception { return getCommentsInternal(resourcePath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public float getAverageRating(final String resourcePath) throws RegistryException { try {//from w w w . j av a 2 s . c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<Float>() { @Override public Float run() throws Exception { return getAverageRatingInternal(resourcePath); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public int getRating(final String path, final String userName) throws RegistryException { try {//w ww .j av a2 s . com return AccessController.doPrivileged(new PrivilegedExceptionAction<Integer>() { @Override public Integer run() throws Exception { return getRatingInternal(path, userName); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public String[] getAspectActions(final String resourcePath, final String aspectName) throws RegistryException { try {/* w w w . j a va2 s.c o m*/ return AccessController.doPrivileged(new PrivilegedExceptionAction<String[]>() { @Override public String[] run() throws Exception { return getAspectActionsInternal(resourcePath, aspectName); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }
From source file:org.wso2.carbon.registry.core.session.UserRegistry.java
public Collection searchContent(final String keywords) throws RegistryException { try {//from w ww . j a v a 2s .c o m return AccessController.doPrivileged(new PrivilegedExceptionAction<Collection>() { @Override public Collection run() throws Exception { return searchContentInternal(keywords); } }); } catch (PrivilegedActionException e) { throw (RegistryException) e.getException(); } }