Skip to content

Commit

Permalink
Merge pull request #1159 from Marketcetera/MATP-1172
Browse files Browse the repository at this point in the history
MATP-1172 Update and complete Javadoc
  • Loading branch information
colinduplantis committed Apr 21, 2023
2 parents fca3936 + e51092c commit 9784fe7
Show file tree
Hide file tree
Showing 262 changed files with 1,221 additions and 1,467 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public interface AdminClient
*
* @param inNewUser a <code>User</code> value
* @param inPassword a <code>String</code> value
* @return a <code>User</code> value
*/
User createUser(User inNewUser,
String inPassword);
Expand Down Expand Up @@ -128,7 +129,7 @@ Permission updatePermission(String inPermissionName,
/**
* Read roles.
*
* @return a <code>List&lt;Role&gt</code> value
* @return a <code>List&lt;Role&gt;</code> value
*/
List<Role> readRoles();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface MutableUserAttributeFactory
*
* @param inUser a <code>User</code> value
* @param inType a <code>UserAttributeType</code> value
* @param inAttribute a <code>String<code> value
* @param inAttribute a <code>String</code> value
* @return a <code>UserAttribute</code> value
*/
MutableUserAttribute create(User inUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface UserAttributeFactory
*
* @param inUser a <code>User</code> value
* @param inType a <code>UserAttributeType</code> value
* @param inAttribute a <code>String<code> value
* @param inAttribute a <code>String</code> value
* @return a <code>UserAttribute</code> value
*/
UserAttribute create(User inUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface PasswordService
/**
* Get the hash of the given value.
*
* @param inValue a <code>char[][]</code> value
* @param inValues a <code>char[][]</code> value
* @return a <code>String</code> value
*/
String getHash(char[]...inValues);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void testGetRpcRole()
rpcRole);
}
/**
* Test {@link AdminRpcUtil#getRole(com.marketcetera.admin.AdminRpc.Role, RoleFactory)}.
* Test <code>getRole</code>.
*
* @throws Exception if an unexpected error occurs
*/
Expand Down Expand Up @@ -170,7 +170,7 @@ public void testGetRpcPermission()
rpcPermission);
}
/**
* Test {@link AdminRpcUtil#getUserAttribute(com.marketcetera.admin.AdminRpc.UserAttribute)}.
* Test <code>getUserAttribute</code>.
*
* @throws Exception if an unexpected error occurs
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
*/
public class AddUserToRoleAction
{
/**
* Validate and start the object.
*/
@PostConstruct
public void start()
{
Expand Down Expand Up @@ -56,7 +59,7 @@ public String getUsername()
/**
* Sets the username value.
*
* @param a <code>String</code> value
* @param inUsername a <code>String</code> value
*/
public void setUsername(String inUsername)
{
Expand All @@ -74,18 +77,18 @@ public String getRoleName()
/**
* Sets the roleName value.
*
* @param a <code>String</code> value
* @param inRoleName a <code>String</code> value
*/
public void setRoleName(String inRoleName)
{
roleName = inRoleName;
}
/**
*
* username value
*/
private String username;
/**
*
* role name value
*/
private String roleName;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
*/
public class AddUserToSupervisorRoleAction
{
/**
* Validate and start the object.
*/
@PostConstruct
public void start()
{
Expand Down Expand Up @@ -56,7 +59,7 @@ public String getSubjectUsername()
/**
* Sets the subjectUsername value.
*
* @param a <code>String</code> value
* @param inSubjectUsername a <code>String</code> value
*/
public void setSubjectUsername(String inSubjectUsername)
{
Expand All @@ -74,18 +77,18 @@ public String getSupervisorPermissionName()
/**
* Sets the supervisorPermissionName value.
*
* @param a <code>String</code> value
* @param inSupervisorPermissionName a <code>String</code> value
*/
public void setSupervisorPermissionName(String inSupervisorPermissionName)
{
supervisorPermissionName = inSupervisorPermissionName;
}
/**
*
* subject username value
*/
private String subjectUsername;
/**
*
* supervisor username value
*/
private String supervisorPermissionName;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public long getPollingInterval()
/**
* Sets the pollingInterval value.
*
* @param a <code>long</code> value
* @param inPollingInterval a <code>long</code> value
*/
public void setPollingInterval(long inPollingInterval)
{
Expand All @@ -129,7 +129,7 @@ public String getProvisioningDirectory()
/**
* Sets the provisioningDirectory value.
*
* @param a <code>String</code> value
* @param inProvisioningDirectory a <code>String</code> value
*/
public void setProvisioningDirectory(String inProvisioningDirectory)
{
Expand All @@ -147,7 +147,7 @@ public ClusterService getClusterService()
/**
* Sets the clusterService value.
*
* @param a <code>ClusterService</code> value
* @param inClusterService a <code>ClusterService</code> value
*/
public void setClusterService(ClusterService inClusterService)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ public void setPassword(char[] password)
* {@link #validatePassword(char[]) validating} the supplied password.
* @param originalPassword the original password. This password should
* match the currently configured password.
* <p>
* The new password is not saved to the database. To save
* the new password to the database, invoke {@link #save()}
*
* @param newPassword the new password, cannot be empty.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void setAttribute(String inKey,
/**
* Get the attribute with the given key for the local cluster member.
*
* @param inKey a <code>String<code> value
* @param inKey a <code>String</code> value
* @return a <code>String</code> value or <code>null</code>
*/
String getAttribute(String inKey);
Expand All @@ -125,7 +125,7 @@ void setAttribute(String inKey,
/**
* Get the attributes for all cluster members.
*
* @return a <code>Map&lt;String,Map&l;String,String&gt;&gt;</code> value
* @return a <code>Map&lt;String,Map&lt;String,String&gt;&gt;</code> value
*/
Map<String,Map<String,String>> getAttributes();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public String getWorkUnitUid()
/**
* Sets the workUnitUid value.
*
* @param a <code>String</code> value
* @param inWorkUnitUid a <code>String</code> value
*/
public void setWorkUnitUid(String inWorkUnitUid)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,6 @@ protected Set<ClusterWorkUnitDescriptor> getActiveWorkUnitSpecs(ClusterWorkUnitS
}
/**
* Establishes the set of work unit specs for the cluster.
*
* @throws InterruptedException if the appropriate cluster lock cannot be established
*/
protected void establishWorkUnitSpecs()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public String getDefaultValue()
/**
* Sets the defaultValue value.
*
* @param a <code>String</code> value
* @param inDefaultValue a <code>String</code> value
*/
public void setDefaultValue(String inDefaultValue)
{
Expand All @@ -205,7 +205,7 @@ public boolean isReadOnly()
/**
* Sets the isReadOnly value.
*
* @param a <code>boolean</code> value
* @param inIsReadOnly a <code>boolean</code> value
*/
public void setIsReadOnly(boolean inIsReadOnly)
{
Expand All @@ -223,7 +223,7 @@ public String getAdvice()
/**
* Sets the advice value.
*
* @param a <code>String</code> value
* @param inAdvice a <code>String</code> value
*/
public void setAdvice(String inAdvice)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ApplicationContext getApplicationContext()
/**
* Sets the applicationContext value.
*
* @param an <code>ApplicationContext</code> value
* @param inApplicationContext an <code>ApplicationContext</code> value
*/
public void setApplicationContext(ApplicationContext inApplicationContext)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ContextClassProvider getContextClassProvider()
/**
* Sets the contextClassProvider value.
*
* @param a <code>ContextClassProvider</code> value
* @param inContextClassProvider a <code>ContextClassProvider</code> value
*/
public void setContextClassProvider(ContextClassProvider inContextClassProvider)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public BatchQueueProcessor(String inThreadDescription)
/**
* Create a new BatchQueueProcessor instance.
*
* @param inThreadDescription a <code>String</code> value
* @param inThreadDescriptor a <code>String</code> value
* @param inQueue a <code>BlockingQueue&lt;Clazz&gt;</code> value
*/
public BatchQueueProcessor(String inThreadDescriptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.Closeable;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;

import org.apache.commons.lang.Validate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected void processData(Clazz inData)
* <p>Subclasses may override this value to customize the batch size.
* The default value is {@link Integer#MAX_VALUE}.
*
* @return an <code>int</cod> value
* @return an <code>int</code> value
*/
protected int getBatchSize()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public long getMonitorInterval()
/**
* Sets the monitorInterval value.
*
* @param a <code>long</code> value
* @param inMonitorInterval a <code>long</code> value
*/
public void setMonitorInterval(long inMonitorInterval)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
package org.marketcetera.core.file;

import java.io.File;

/* $License$ */

/**
* Watches the given directories for files to be added or modified.
*
* <p>Instantiate a <code>DirectoryWatcher</code> implementer and {@link #setDirectoriesToWatch(File...) add} directories
* to watch. {@link DirectoryWatcher#addWatcher(DirectoryWatcherSubscriber) Subscribe} to notifications and {@link #start() start} the
* <p>Instantiate a <code>DirectoryWatcher</code> implementer and add directories
* to watch. {@link DirectoryWatcher#addWatcher(DirectoryWatcherSubscriber) Subscribe} to notifications and start the
* watcher.</p>
*
* <p>The <code>DirectoryWatcher</code> contract directs that watchers will be notified in the order they subscribed for
* each file that:
* <ul>
* <li>exists in the directory upon the call to {@link #start start}</li>
* <li>exists in the directory upon the call to start</li>
* <li>is added to the directory after start</li>
* </ul>
*
* <p>Watchers are notified for each file once and only once. Watcher notifications
* are guaranteed to occur no more frequently than the interval {@link #setPollingInterval(long) set}.</p>
* are guaranteed to occur no more frequently than the interval set.</p>
*
* <p>Implementers are guaranteed by contract to provide a thread-safe implementation.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
* from a FIX message.
* <p>
* Typical usage is
* <pre>
* quickfix.Message message =...
* {@link InstrumentFromMessage}.{@link #SELECTOR}.{@link DynamicInstrumentFunctionSelector#forValue(Object) forValue}(message).{@link #extract(quickfix.Message) extract}(message);
* </pre>
* <pre>Instrument instrument = InstrumentFromMessage.SELECTOR.forValue(quickfix.Message).extract(quickfix.Message);</pre>
*
* @author anshul@marketcetera.com
* @version $Id$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import quickfix.DataDictionary;
import quickfix.FieldMap;
import quickfix.Message;
import quickfix.field.SecurityType;
import quickfix.field.Symbol;

Expand All @@ -16,16 +15,7 @@
* instrument onto the supplied FIX message.
* <p>
* Typical usage is:
* <pre>
* Instrument instrument = ...
* quickfix.DataDictionary dataDictionary = ...
* String msgType = ...
* quickfix.Message message = ...
* InstrumentToMessage itm = {@link InstrumentToMessage}.{@link #SELECTOR}.{@link StaticInstrumentFunctionSelector#forInstrument(Instrument) forInstrument}(instrument);
* if(itm.{@link #isSupported(quickfix.DataDictionary, String) isSupported}(dataDictionary,msgType)) {
* itm.{@link #set(Instrument, DataDictionary, String, Message) set}(instrument, dataDictionary, msgType, message);
* }
* </pre>
* <pre>InstrumentToMessage.SELECTOR.forInstrument(instrument).set(instrument,mMessageFactory.getBeginString(),quickfixMessage);</pre>
*
* @param <I> The type of instrument handled by this function
*
Expand All @@ -45,7 +35,7 @@ public abstract class InstrumentToMessage<I extends Instrument> extends Instrume
* <p>
* <b>NOTE:</b> This method is only meant to be used for unit testing.
* It's not recommended that this method be used in production. Use
* {@link #set(org.marketcetera.trade.Instrument,quickfix.DataDictionary, String,quickfix.Message)} instead.
* {@link #set(Instrument, String, quickfix.FieldMap)} instead.
*
* @param inInstrument the instrument
* @param inBeginString the begin string value of the FIX message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* In cases when an instrument instance is not available and instrument
* specific functionality needs to be invoked based on an arbitrary data,
* a combination of {@link org.marketcetera.core.instruments.DynamicInstrumentFunctionSelector}
* & {@link org.marketcetera.core.instruments.DynamicInstrumentHandler} is
* &amp; {@link org.marketcetera.core.instruments.DynamicInstrumentHandler} is
* used. These classes help dynamically select the instrument specific
* functionality in absence of the Instrument object. See
* {@link org.marketcetera.core.instruments.InstrumentFromMessage}
Expand Down
Loading

0 comments on commit 9784fe7

Please sign in to comment.