Package org.w3c.jigsaw.admin

Examples of org.w3c.jigsaw.admin.RemoteResource


    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here


    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here

    TextField tf;
    Panel widget;

    protected void addUser() {
  if(tf.getText().length() > 0) {
      RemoteResource nrr;
      try {
    nrr = rrw.getResource().
        registerResource(tf.getText(),
             "org.w3c.jigsaw.auth.AuthUser");
      } catch (RemoteAccessException ex) {
View Full Code Here

    {
  String name = (String)p.get(HttpServerResourceFeeder.RESOURCE_P);
  if (name == null)
      return null;
  RemoteResourceWrapper w = rrw;
  RemoteResource rm = w.getResource();
  RemoteResource target = null;
  do {
      w = w.getFatherWrapper();
      if (w != null) {
    rm = w.getResource();
    try {
View Full Code Here

    protected String [] getStringArray(RemoteResourceWrapper rrw,
               Properties p)
    {
  RemoteResourceWrapper w      = rrw;
  RemoteResource        rm     = w.getResource();
  RemoteResource        target = null;
  String                realm  = null;
  try {
      realm = (String)rm.getValue("realm");
  } catch (RemoteAccessException ex) {
      ex.printStackTrace();
  }
  if (realm == null)
      return new String[0];

  do {
      w = w.getFatherWrapper();
      if (w != null) {
    rm = w.getResource();
    try {
        if ((rm.getClassHierarchy())[0].equals
      ("org.w3c.jigsaw.http.ConfigResource"))
      target = rm.loadResource("realms");
    } catch (RemoteAccessException ex) {
        ex.printStackTrace();
    }
      }
      else
    return new String[0];
  } while (target == null);
 
  try {
      target = target.loadResource(realm);
  } catch (RemoteAccessException ex) {
      target = null;
  }
  if (target == null)
      return new String[0];
  try {
      return target.enumerateResourceIdentifiers();
  } catch (RemoteAccessException ex) {
      ex.printStackTrace();
      return new String[0];
  }
    }
View Full Code Here

     * @return an AttributeEditor, or <strong>null</strong> if none found
     */

    public static synchronized
    AttributeEditor getEditor(RemoteResourceWrapper rrw, Attribute attribute) {
  RemoteResource resource = rrw.getResource();

  PropertyManager pm = PropertyManager.getPropertyManager();
  Properties props = pm.getAttributeProperties(rrw, attribute);
  String className = (String) props.get("class");
  if ( className == null ) {
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here

  } else {
      widget.initialize((long)0,(long)100,(long)5);
  }

  RemoteResource r = w.getResource();
  if(o == null) {
      Long v = null;
      // FIXME
      v = (Long) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = (Long)a.getDefault();
      if ( v != null ) {
View Full Code Here

     */
    protected Hashtable getResources(RemoteResourceWrapper rrw)
  throws RemoteAccessException
    {
  PropertyManager pm = PropertyManager.getPropertyManager();
  RemoteResource rr = rrw.getResource();
  if (rr.isIndexersCatalog())
      return pm.getIndexers();
  else
      return pm.getResources();
    }
View Full Code Here

    protected void addFrame(String classname,
          RemoteResourceWrapper rrwf,
          TreePath path)
  throws RemoteAccessException
    {
  RemoteResource newframe =
      rrwf.getResource().registerFrame(null, classname);
  RemoteResourceWrapper nrrw =
      new RemoteResourceWrapper(rrwf, newframe);
  RemoteFrameWrapperNode parent =
      (RemoteFrameWrapperNode)path.getLastPathComponent();
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.admin.RemoteResource

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.