Package org.apache.slide.common

Examples of org.apache.slide.common.SlideToken


            credentials = new CredentialsToken("");
        } else {
            credentials = new CredentialsToken(principal);
        }
       
        SlideToken token = new SlideTokenImpl(credentials);
        token.setEnforceLockTokens(true);
       
        return token;
    }
View Full Code Here


            credentials = new CredentialsToken("");
        } else {
            credentials = new CredentialsToken(principal);
        }
       
        SlideToken token = new SlideToken(credentials);
        token.setEnforceLockTokens(true);
       
        return token;
    }
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 SlideToken(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 SlideToken(credToken);
       
        // Fetch the Slide object representing the user.
        try {
           
            ObjectNode user = securityHelper.getPrincipal(slideToken);
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 SlideToken(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 SlideToken(credToken);
       
        // Fetch the Slide object representing the user.
        try {
           
            ObjectNode user = securityHelper.getPrincipal(slideToken);
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 SlideToken(credToken);
        try {
            return securityHelper.hasRole(slideToken, role);
        } catch (SlideException e) {
            return (false);
        }
View Full Code Here

        // Fetch the Slide object representing the user.
        try {
           
            Principal userPrincipal = getPrincipal(username);
            CredentialsToken credToken = new CredentialsToken(userPrincipal);
            SlideToken slideToken = new SlideToken(credToken);
           
            NodeRevisionDescriptors revisionDescriptors =
                contentHelper.retrieve(slideToken, usersPath + "/" + username);
            NodeRevisionDescriptor revisionDescriptor =
                contentHelper.retrieve(slideToken, revisionDescriptors);
View Full Code Here

            credentials = new CredentialsToken("");
        } else {
            credentials = new CredentialsToken(principal);
        }
       
        SlideToken token = new SlideTokenImpl(credentials);
        token.setEnforceLockTokens(true);
       
        return token;
    }
View Full Code Here

        if (principal == null) {
            credentials = new CredentialsToken("");
        } else {
            credentials = new CredentialsToken(principal);
        }
        SlideToken st = new SlideTokenImpl(credentials);
        return new DomainBean(st);
    }
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.