jetbrains.buildServer.xstream
Class PermissionsConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
      extended by com.thoughtworks.xstream.converters.extended.JavaClassConverter
          extended by jetbrains.buildServer.xstream.PermissionsConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

public class PermissionsConverter
extends com.thoughtworks.xstream.converters.extended.JavaClassConverter

Creates colon separated list of permission names from the Permissions object for XStream serialization.


Constructor Summary
PermissionsConverter()
           
 
Method Summary
 boolean canConvert(java.lang.Class aClass)
           
 java.lang.Object fromString(java.lang.String text)
           
 java.lang.String toString(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionsConverter

public PermissionsConverter()
Method Detail

canConvert

public boolean canConvert(java.lang.Class aClass)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Overrides:
canConvert in class com.thoughtworks.xstream.converters.extended.JavaClassConverter

toString

public java.lang.String toString(java.lang.Object o)
Specified by:
toString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Overrides:
toString in class com.thoughtworks.xstream.converters.extended.JavaClassConverter

fromString

public java.lang.Object fromString(java.lang.String text)
Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Overrides:
fromString in class com.thoughtworks.xstream.converters.extended.JavaClassConverter