/** * Return all immediate children property values of a parent Jive property as a list of strings, * or an empty list if there are no children. For example, given * the properties <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, <tt>X.Y.C</tt> and <tt>X.Y.C.D</tt>, then * the immediate child properties of <tt>X.Y</tt> are <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, and * <tt>X.Y.C</tt> (the value of <tt>X.Y.C.D</tt> would not be returned using this method).<p> * * @param parent the name of the parent property to return the children for. * @return all child property values for the given parent. */ public static List<String> getProperties( String parent ) { return getListProperty( parent, new ArrayList<>() ); }
/** * Returns a collection of SASL mechanism names that forms the source pool from which the mechanisms that are * eventually being offered to peers are obtained. ** * When a mechanism is not returned by this method, it will never be offered, but when a mechanism is returned * by this method, there is no guarantee that it will be offered. * * Apart from being returned in this method, an implementation must be available (see {@link #getImplementedMechanisms()} * and configuration or other characteristics of this server must not prevent a particular mechanism from being * used (see @{link {@link #getSupportedMechanisms()}}. * * @return A collection of mechanisms that are considered for use in this instance of Openfire. */ public static List<String> getEnabledMechanisms() { return JiveGlobals.getListProperty("sasl.mechs", Arrays.asList( "ANONYMOUS","PLAIN","DIGEST-MD5","CRAM-MD5","SCRAM-SHA-1","JIVE-SHAREDSECRET","GSSAPI","EXTERNAL" ) ); }
@Override public AuthProvider getAuthProvider( String username ) { for ( final Map.Entry<String, AuthProvider> entry : providersByPrefix.entrySet() ) { final String usersProperty = JiveGlobals.getProperty( entry.getKey() + ".members.propertyName" ); if ( usersProperty != null ) { final List<String> usersInSet = JiveGlobals.getListProperty( usersProperty, Collections.<String>emptyList() ); if ( usersInSet.contains( username ) ) { return entry.getValue(); } } } return fallbackProvider; }
@Override public UserProvider getUserProvider( String username ) { for ( final Map.Entry<String, UserProvider> entry : providersByPrefix.entrySet() ) { final String usersProperty = JiveGlobals.getProperty( entry.getKey() + ".members.propertyName" ); if ( usersProperty != null ) { final List<String> usersInSet = JiveGlobals.getListProperty( usersProperty, Collections.<String>emptyList() ); if ( usersInSet.contains( username ) ) { return entry.getValue(); } } } return fallbackProvider; }
public List<String> getStunMappingHarversterAddresses() { return JiveGlobals.getListProperty( "org.ice4j.ice.harvest.STUN_MAPPING_HARVESTER_ADDRESSES", Collections.<String>emptyList() ); }
public List<String> getButtonsImplemented() { // These should match the implementations that are provided in the Toolbox.web.js file in jitsi-meet. return JiveGlobals.getListProperty( "ofmeet.buttons.implemented", Arrays.asList( "camera", "chat", "desktop", "etherpad", "feedback", "fodeviceselection", "fullscreen", "hangup", "info", "invite", "microphone", "profile", "raisehand", "settings", "sharedvideo", "shortcuts", "stats", "videoquality" ) ); }
public List<String> getInviteOptions() { return JiveGlobals.getListProperty( "org.jitsi.videobridge.ofmeet.inviteOptions", Arrays.asList( "invite" ) ); // "invite", "dialout", "addtocall" }
public List<String> getButtonsEnabled() { return JiveGlobals.getListProperty( "ofmeet.buttons.enabled", Arrays.asList( "camera", "chat", "desktop", "etherpad", "feedback", "fodeviceselection", "fullscreen", "hangup", "info", "invite", "microphone", "profile", "raisehand", "settings", "sharedvideo", "shortcuts", "stats", "videoquality" ) ); }
/** * Return all immediate children property values of a parent Jive property as a list of strings, * or an empty list if there are no children. For example, given * the properties <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, <tt>X.Y.C</tt> and <tt>X.Y.C.D</tt>, then * the immediate child properties of <tt>X.Y</tt> are <tt>X.Y.A</tt>, <tt>X.Y.B</tt>, and * <tt>X.Y.C</tt> (the value of <tt>X.Y.C.D</tt> would not be returned using this method).<p> * * @param parent the name of the parent property to return the children for. * @return all child property values for the given parent. */ public static List<String> getProperties( String parent ) { return getListProperty( parent, new ArrayList<String>() ); }
/** * Returns a collection of SASL mechanism names that forms the source pool from which the mechanisms that are * eventually being offered to peers are obtained. ** * When a mechanism is not returned by this method, it will never be offered, but when a mechanism is returned * by this method, there is no guarantee that it will be offered. * * Apart from being returned in this method, an implementation must be available (see {@link #getImplementedMechanisms()} * and configuration or other characteristics of this server must not prevent a particular mechanism from being * used (see @{link {@link #getSupportedMechanisms()}}. * * @return A collection of mechanisms that are considered for use in this instance of Openfire. */ public static List<String> getEnabledMechanisms() { return JiveGlobals.getListProperty("sasl.mechs", Arrays.asList( "ANONYMOUS","PLAIN","DIGEST-MD5","CRAM-MD5","SCRAM-SHA-1","JIVE-SHAREDSECRET","GSSAPI","EXTERNAL" ) ); }