Examples of SlideTokenImpl


Examples of org.apache.slide.common.SlideTokenImpl

        this.content = nat.getContentHelper();
        this.security = nat.getSecurityHelper();
        this.lock = nat.getLockHelper();
        this.macro = nat.getMacroHelper();

        this.slideToken = new SlideTokenImpl(credToken);

        try {
            this.revisionDescriptors = content.retrieve(this.slideToken,
                                                        this.config.getFilesPath()+
                                                        this.path);
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

            return;
        }

        this.sourcecredential = sourcecredential;
        this.credToken = new CredentialsToken(this.sourcecredential.getPrincipal());
        this.slideToken = new SlideTokenImpl(credToken);
    }
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

     * @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

Examples of org.apache.slide.common.SlideTokenImpl

     */
    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

Examples of org.apache.slide.common.SlideTokenImpl

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

Examples of org.apache.slide.common.SlideTokenImpl

    }

    public void initialize() throws SourceException {
       
        CredentialsToken credentials = new CredentialsToken(m_principal);
        m_slideToken = new SlideTokenImpl(credentials);
       
        m_structure = m_nat.getStructureHelper();
        m_content = m_nat.getContentHelper();
        m_lock = m_nat.getLockHelper();
        m_macro = m_nat.getMacroHelper();
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

                               String password) throws Exception {
       
        String usersPath = nat.getNamespaceConfig().getUsersPath();
        String userUri = usersPath + "/" + username;
       
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Structure structure = nat.getStructureHelper();
        Content content = nat.getContentHelper();
       
        try {
           
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

                                String groupname) throws Exception {
       
        String groupsPath = nat.getNamespaceConfig().getGroupsPath();
        String groupUri = groupsPath + "/" + groupname;
       
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Structure structure = nat.getStructureHelper();
        Content content = nat.getContentHelper();
       
        try {
            nat.begin();
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

                                String rolename) throws Exception {
       
        String rolesPath = nat.getNamespaceConfig().getRolesPath();
        String roleUri = rolesPath + "/" + rolename;
       
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Structure structure = nat.getStructureHelper();
        Content content = nat.getContentHelper();
       
        try {
            nat.begin();
View Full Code Here

Examples of org.apache.slide.common.SlideTokenImpl

        // user cannot delete itself
        if (callerUri.equals(objectUri)) {
            return;
        }
   
        SlideToken slideToken = new SlideTokenImpl(new CredentialsToken(caller));
        Macro macro = nat.getMacroHelper();
   
        try {
            nat.begin();
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.