test_class.declarator: rules = {
  		"4|deny|all",
  		"1|allow|self",
  		"3|allow|jid|pubsub@test.com",
  		"2|allow|jid|admin@test2.com", }
test_class.original_string: String[] rules = {
  		"4|deny|all",
  		"1|allow|self",
  		"3|allow|jid|pubsub@test.com",
  		"2|allow|jid|admin@test2.com", };
test_class.type: String[]
test_class.var_name: rules
test_class.file: tigase-server 7.1.0/src/test/java/tigase/vhosts/filter/CustomDomainFilterTest.java
test_class.identifier: CustomDomainFilterTest
test_case.body: @Test
  	public void testIsAllowed() throws TigaseStringprepException, ParseException {
  
  		JID jid1_r1 = JID.jidInstance( "user1", "domain1", "resource1" );
  		JID jid1_r2 = JID.jidInstance( "user1", "domain1", "resource2" );
  		JID jid2_r1 = JID.jidInstance( "user2", "domain1", "resource1" );
  		JID jid3_r1 = JID.jidInstance( "user3", "domain1", "resource1" );
  		JID admin = JID.jidInstance( "admin", "test2.com" );
  		JID pubsub = JID.jidInstance( "pubsub", "test.com" );
  
  		boolean allowed = CustomDomainFilter.isAllowed( jid1_r1, jid1_r2, rules );
  		assertTrue( "should be allowed / self / permitted jid", allowed );
  
  		allowed = CustomDomainFilter.isAllowed( jid1_r1, admin, rules );
  		assertTrue( "should be allowed / permitted jid", allowed );
  
  		allowed = CustomDomainFilter.isAllowed( jid1_r1, pubsub, rules );
  		assertTrue( "should be allowed / permitted jid", allowed );
  
  		allowed = CustomDomainFilter.isAllowed( jid1_r1, jid2_r1, rules );
  		assertFalse( "should be denyed / permitted jid", allowed );
  
  		allowed = CustomDomainFilter.isAllowed( jid2_r1, jid2_r1, rules );
  		assertTrue( "should be allowed / self", allowed );
  
  		allowed = CustomDomainFilter.isAllowed( jid3_r1, jid2_r1, rules );
  		assertFalse( "should be denied / not permitted jids", allowed );
  
  	}
test_case.class_method_signature: CustomDomainFilterTest.testIsAllowed()
test_case.full_signature: @Test public void testIsAllowed()
test_case.identifier: testIsAllowed
test_case.invocations: jidInstance jidInstance jidInstance jidInstance jidInstance jidInstance isAllowed assertTrue isAllowed assertTrue isAllowed assertTrue isAllowed assertFalse isAllowed assertTrue isAllowed assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIsAllowed()
focal_class.declarator: log = Logger.getLogger( CustomDomainFilter.class.getName() )
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = Logger.getLogger( CustomDomainFilter.class.getName() );
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: tigase-server 7.1.0/src/main/java/tigase/vhosts/filter/CustomDomainFilter.java
focal_class.identifier: CustomDomainFilter
focal_class.class_method_signature: CustomDomainFilter.CustomDomainFilter()
focal_class.full_signature: private  CustomDomainFilter()
focal_class.identifier: CustomDomainFilter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  CustomDomainFilter()
focal_class.class_method_signature: CustomDomainFilter.parseRules( String rules )
focal_class.full_signature: public static Set<Rule> parseRules( String rules )
focal_class.identifier: parseRules
focal_class.modifiers: public static
focal_class.parameters: ( String rules )
focal_class.return: Set<Rule>
focal_class.signature: Set<Rule> parseRules( String rules )
focal_class.class_method_signature: CustomDomainFilter.parseRules( String[] rules )
focal_class.full_signature: public static Set<Rule> parseRules( String[] rules )
focal_class.identifier: parseRules
focal_class.modifiers: public static
focal_class.parameters: ( String[] rules )
focal_class.return: Set<Rule>
focal_class.signature: Set<Rule> parseRules( String[] rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, String rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, String rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, String rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, String rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, String[] rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, String[] rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, String[] rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, String[] rules )
focal_class.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, Set<Rule> rules )
focal_class.full_signature: public static boolean isAllowed( JID source, JID destination, Set<Rule> rules )
focal_class.identifier: isAllowed
focal_class.modifiers: public static
focal_class.parameters: ( JID source, JID destination, Set<Rule> rules )
focal_class.return: boolean
focal_class.signature: boolean isAllowed( JID source, JID destination, Set<Rule> rules )
focal_method.body: public static boolean isAllowed( JID source, JID destination, String rules ) {
  		try {
  			Set<Rule> parseRules = parseRules( rules );
  			if ( parseRules != null ){
  				return isAllowed( source, destination, parseRules );
  			} else {
  				return true;
  			}
  		} catch ( ParseException e ) {
  			return true;
  		}
  	}
focal_method.class_method_signature: CustomDomainFilter.isAllowed( JID source, JID destination, String rules )
focal_method.full_signature: public static boolean isAllowed( JID source, JID destination, String rules )
focal_method.identifier: isAllowed
focal_method.invocations: parseRules isAllowed
focal_method.modifiers: public static
focal_method.parameters: ( JID source, JID destination, String rules )
focal_method.return: boolean
focal_method.signature: boolean isAllowed( JID source, JID destination, String rules )