Package org.dmd.dmc.types

Examples of org.dmd.dmc.types.DotName


    public DotName del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            DotName key = null;
            DotName rc = null;
            try {
                key = typeCheck(v);
            } catch (DmcValueException e) {
                throw(new IllegalStateException("Incompatible type passed to del():" + getName(),e));
            }
View Full Code Here


                throw(new IllegalStateException("Attribute: " + getAttributeInfo().name + " is not indexed. You can't use setMVnth()."));
           
            if ( (index < 0) || (index >= getAttributeInfo().indexSize))
                throw(new IllegalStateException("Index " + index + " for attribute: " + getAttributeInfo().name + " is out of range: 0 <= index < " + getAttributeInfo().indexSize));
           
            DotName rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

        synchronized(this){
            if (value == null)
                return(false);

            try {
                DotName val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

    public UserRIREF add(Object v) throws DmcValueException {
        synchronized(this){
            UserRIREF newval = typeCheck(v);
            if (value == null)
                initValue();
            DotName key = (DotName)((DmcMappedAttributeIF)newval).getKey();
            UserRIREF oldval = value.put(key,newval);
           
            if (oldval != null){
                // We had a value with this key, ensure that the value actually changed
                if (oldval.valuesAreEqual(newval))
View Full Code Here

        return(new UserFolderRIREF());
    }

    @Override
    protected DotName getNewName(){
        return(new DotName());
    }
View Full Code Here

    public SessionFolderRIREF add(Object v) throws DmcValueException {
        synchronized(this){
            SessionFolderRIREF newval = typeCheck(v);
            if (value == null)
                initValue();
            DotName key = (DotName)((DmcMappedAttributeIF)newval).getKey();
            SessionFolderRIREF oldval = value.put(key,newval);
           
            if (oldval != null){
                // We had a value with this key, ensure that the value actually changed
                if (oldval.valuesAreEqual(newval))
View Full Code Here

        return(new SessionRIREF());
    }

    @Override
    protected DotName getNewName(){
        return(new DotName());
    }
View Full Code Here

    public UserFolderRIREF add(Object v) throws DmcValueException {
        synchronized(this){
            UserFolderRIREF newval = typeCheck(v);
            if (value == null)
                initValue();
            DotName key = (DotName)((DmcMappedAttributeIF)newval).getKey();
            UserFolderRIREF oldval = value.put(key,newval);
           
            if (oldval != null){
                // We had a value with this key, ensure that the value actually changed
                if (oldval.valuesAreEqual(newval))
View Full Code Here

  public void init() throws ResultException, DmcValueException {
    users     = new HashMap<String, UserRIDMW>();
    sessions  = new HashMap<String, SessionRI>();
   
    UserFolderRIDMW  uf = new UserFolderRIDMW();
    uf.setDotName(new DotName("uf"));
    cache.addObject(uf);
   
    UserRIDMW    user1 = new UserRIDMW();
    user1.setDotName(new DotName("uf.1"));
    user1.setUserName("user1");
    user1.setPassword("user1");
    cache.addObject(user1);
    users.put(user1.getUserName(), user1);
   
    UserRIDMW    user2 = new UserRIDMW();
    user2.setDotName(new DotName("uf.2"));
    user2.setUserName("user2");
    user2.setPassword("user2");
    cache.addObject(user2);
    users.put(user1.getUserName(), user1);
   
    SessionFolderRIDMW  sf = new SessionFolderRIDMW();
    sf.setDotName(new DotName("sf"));
    cache.addObject(sf);
  }
View Full Code Here

            logger.warn("Incorrect password for user: " + request.getUserName());
        }
        else{
          SessionRI session = new SessionRI(pluginManager.getCache(),pluginManager.getRequestTracker());
          try {
            session.setDotName(new DotName("sf." + request.getServletRequest().getSession().getId()));
          } catch (DmcValueException e1) {
            // TODO Auto-generated catch block
            e1.printStackTrace();
          }
          session.setSessionIDRI(request.getServletRequest().getSession().getId());
View Full Code Here

TOP

Related Classes of org.dmd.dmc.types.DotName

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.