Package org.apache.slide.common

Examples of org.apache.slide.common.SlideTokenImpl


     * @throws ProcessingException
     */
    public PrincipalGroup[] getPrincipalGroups(Principal caller)
      throws ProcessingException {
        try {
            SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

            String userspath = config.getUsersPath();

            ObjectNode userobjects = structure.retrieve(slidetoken,
                                                        userspath);
View Full Code Here


        // do the actual transaction
        try {
            try {
                nat.begin();

                SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

                String strUri = config.getUsersPath()+"/"+group.getName();

                // create the node in the structure
                ObjectNode object = new GroupNode();
View Full Code Here

        if (group.getName().length()>0) {
            // get the helpers
            Macro macro = nat.getMacroHelper();

            SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

            // get the path of the current authenticated user
            String selfUri = config.getUsersPath()+"/"+caller.getName();

            String strUri = config.getUsersPath()+"/"+group.getName();
View Full Code Here

        // do the actual transaction
        try {
            try {
                nat.begin();

                SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

                String strUri = config.getUsersPath()+"/"+group.getName()+"/"+
                                principal.getName();

                // create the node in the structure
View Full Code Here

     */
    public Principal[] members(Principal caller,
                               PrincipalGroup group)
                                 throws ProcessingException {
        try {
            SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

            String userspath = config.getUsersPath();

            ObjectNode groupobject = structure.retrieve(slidetoken,
                                                        userspath+"/"+
View Full Code Here

        if ((group.getName().length()>0) &&
            (principal.getName().length()>0)) {
            // get the helpers
            Macro macro = nat.getMacroHelper();

            SlideToken slidetoken = new SlideTokenImpl(new CredentialsToken(caller));

            String strUri = config.getUsersPath()+"/"+group.getName()+"/"+
                            principal.getName();

            // do the actual transaction
View Full Code Here

        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

            return;
        }

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

    }

    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

                               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

TOP

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

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.