Package de.danet.an.workflow.rmsimpls.eisrms.aci

Examples of de.danet.an.workflow.rmsimpls.eisrms.aci.RmsConnection


     * can't be found or the key is not associate with an StaffMember object.
     * @throws RemoteException if a system-level error occurs.
     */
    public WfResource asResource (Principal principal)
  throws ResourceNotFoundException, RemoteException {
        RmsConnection con = null;
        try {
            con = conFac.getConnection();
            RmsEntry e = con.lookupUserByAccountName (principal.getName());
            return new DefaultUserResource(rasCtx, e.getKey(), e.getDisplayName());
        } catch (ResourceException e) {
            maybeMapToRemoteException (e);
            throw new ResourceNotFoundException("Not found: " + e.getMessage());
        } catch (NameNotFoundException e) {
View Full Code Here


    }

    /* Comment copied from interface */
    public Collection authorizers (WfResource wfResource)
  throws RemoteException {
        RmsConnection con = null;
        try {
            Collection res = new ArrayList ();
            if (!(wfResource instanceof DefaultUserResource)) {
                return res;
            }
            con = conFac.getConnection();
            Collection resRaw
                = con.authorizers (((DefaultUserResource)wfResource).getId());
            for (Iterator i = resRaw.iterator(); i.hasNext();) {
                RmsEntry e = (RmsEntry)i.next();
                addAsTyped(res, e);
            }
            return res;
View Full Code Here

    }

    /* Comment copied from interface */
    public WfResource resourceByKey (String key)
  throws ResourceNotFoundException, RemoteException {
        RmsConnection con = null;
        try {
            con = conFac.getConnection();
            if (DefaultUserResource.isValidKey(key)) {
                RmsEntry e = con.lookupResource(DefaultUserResource.getId(key));
                return new DefaultUserResource(rasCtx, e.getKey(), e.getDisplayName());
            } else if (DefaultRoleResource.isValidKey(key)) {
                RmsEntry e = con.lookupResource(DefaultRoleResource.getId(key));
                return new DefaultRoleResource(rasCtx, e.getKey(), e.getDisplayName());
            } else if (DefaultGroupResource.isValidKey(key)) {
                RmsEntry e
                    = con.lookupResource(DefaultGroupResource.getId(key));
                return new DefaultGroupResource(rasCtx, e.getKey(), e.getDisplayName());
            } else {
                RmsEntry e = con.lookupResource (key);
                return new DefaultResource(rasCtx, e.getKey(), e.getDisplayName());
            }
        } catch (ResourceException e) {
            maybeMapToRemoteException (e);
            throw new ResourceNotFoundException("Not found: " + e.getMessage());
View Full Code Here

        }
    }

    /* Comment copied from interface. */
    public Collection listResources () throws RemoteException {
        RmsConnection con = null;
        try {
            con = conFac.getConnection();
            Collection resRaw = con.listResources();
            Collection res = new ArrayList ();
            for (Iterator i = resRaw.iterator(); i.hasNext();) {
                RmsEntry e = (RmsEntry)i.next();
                addAsTyped(res, e);
            }
View Full Code Here

     * @throws UnsupportedOperationException if the resource management
     * service does not support this feature.
     */
    public Collection selectResources (Object resSel)
  throws RemoteException, UnsupportedOperationException {
        RmsConnection con = null;
        try {
            con = conFac.getConnection();
            Collection resRaw = con.selectResources(resSel);
            Collection res = new ArrayList ();
            for (Iterator i = resRaw.iterator(); i.hasNext();) {
                RmsEntry e = (RmsEntry)i.next();
                addAsTyped(res, e);
            }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.rmsimpls.eisrms.aci.RmsConnection

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.