Package org.apache.slide.common

Examples of org.apache.slide.common.SlideToken


        return isLocked;
    }
   
    protected boolean isLockNull( String uriStr ) throws ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        boolean isLockNull = false;
        try {
            NodeRevisionDescriptor nrd =
                content.retrieve(stoken, content.retrieve(stoken, uriStr));
View Full Code Here


    protected boolean isLockNull( NodeRevisionDescriptor nrd ) {
        return nrd.propertyValueContains(P_RESOURCETYPE, E_LOCKNULL);
    }
   
    protected SlideToken readonlySlideToken() {
        SlideToken stoken = slideToken;
        if (stoken.isForceStoreEnlistment()) {
            stoken = new SlideTokenWrapper(slideToken, false);
        }
        return stoken;
    }
View Full Code Here

     * @param role Security role to be checked
     */
    public boolean hasRole(Principal principal, String role) {

        CredentialsToken credToken = new CredentialsToken(principal);
        SlideToken slideToken = new SlideTokenImpl(credToken);
        try {
            return securityHelper.hasRole(slideToken, role);
        } catch (SlideException e) {
            return (false);
        }
View Full Code Here

     */
    protected String getPassword(String username) {
       
        Principal userPrincipal = getPrincipal(username);
        CredentialsToken credToken = new CredentialsToken(userPrincipal);
        SlideToken slideToken = new SlideTokenImpl(credToken);
       
        // Fetch the Slide object representing the user.
        try {
           
            ObjectNode user = securityHelper.getPrincipal(slideToken);
View Full Code Here

        overwrite = requestHeaders.getOverwrite(true);
    }
   
    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        resp.setStatus( WebdavStatus.SC_OK );
       
        try {
            collectionNode = structure.retrieve( stoken, collectionUri );
View Full Code Here

     */
    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        resp.setStatus( WebdavStatus.SC_CREATED );

        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        try {
            collectionNode = structure.retrieve( stoken, collectionUri );
        }
        catch( ServiceAccessException e ) {
View Full Code Here

     *
     * @throws     SlideException
     */
    protected ViolatedPrecondition getPreconditionViolation(String resourcePath) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        ViolatedPrecondition violatedPrecondition = null;
        NodeRevisionDescriptors revisionDescriptors =
            content.retrieve( stoken, resourcePath);
        NodeRevisionDescriptor revisionDescriptor =
View Full Code Here

        this.sToken = sToken;
        this.nsaToken = nsaToken;
    }

    protected SlideToken readonlySlideToken() {
        SlideToken stok = sToken;
        if (stok.isForceStoreEnlistment()) {
            stok = new SlideTokenWrapper(sToken, false);
        }
        return stok;
    }
View Full Code Here

     *
     * @throws     SlideException
     */
    private ViolatedPrecondition getPreconditionViolation(String sourceUri, String destinationUri) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        ViolatedPrecondition violatedPrecondition = null;
        if( Configuration.useVersionControl() ) {

            if (isRequestSourceWorkspace) {
View Full Code Here

            String grammarNamespace = basicSearch.getNamespaceURI();
            Search searchHelper = token.getSearchHelper();
            StringBuffer requestURIWithScope = new StringBuffer(req.getContextPath());
            requestURIWithScope.append(sourceUri);
           
            SlideToken slideTokenNoEnlist = slideToken;
            if (slideToken.isForceStoreEnlistment()) {
                slideTokenNoEnlist = new SlideTokenWrapper(slideToken, false);
            }
           
            SearchQuery searchQuery = searchHelper.createSearchQuery(grammarNamespace,
View Full Code Here

TOP

Related Classes of org.apache.slide.common.SlideToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.