Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * OfficeFloor - http://www.officefloor.net
   * Copyright (C) 2005-2011 Daniel Sagenschneider
   *
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
   *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 package net.officefloor.model.desk;
 
 import java.util.Map;
 
Changes that can be made to a DeskModel.

Author(s):
Daniel Sagenschneider
 
 public interface DeskChanges {

 
 
 
 
 
 
Adds a WorkModel to the DeskModel.

 
	<W extends WorkChange<WorkModeladdWork(String workName,
			String workSourceClassNamePropertyList properties,
			WorkType<W> workTypeString... taskNames);

Removes a WorkModel from the DeskModel.

Parameters:
workModel WorkModel to be removed.
Returns:
net.officefloor.model.change.Change to remove the WorkModel.
Renames the WorkModel.

Parameters:
workModel WorkModel to rename.
newWorkName New name for the WorkModel.
Returns:
net.officefloor.model.change.Change to rename the WorkModel.
	Change<WorkModelrenameWork(WorkModel workModelString newWorkName);

Refactors the WorkModel.

Parameters:
workModel WorkModel to refactor.
workName New name for the WorkModel.
workSourceClassName New net.officefloor.compile.spi.work.source.WorkSource class name for the WorkModel.
properties New net.officefloor.compile.properties.PropertyList for the WorkModel.
workType net.officefloor.compile.work.WorkType that the WorkModel is being refactored to.
workTaskNameMapping Mapping of the net.officefloor.compile.work.TaskType name to the WorkTaskModel name.
workTaskToObjectNameMapping Mapping of the WorkTaskModel name to the net.officefloor.compile.work.TaskObjectType name to the WorkTaskObjectModel name.
taskToFlowNameMapping Mapping of the TaskModel name to the net.officefloor.compile.work.TaskFlowType name to the TaskFlowModel name.
taskToEscalationTypeMapping Mapping of the TaskModel name to the net.officefloor.compile.work.TaskEscalationType type to the TaskEscalationModel type.
taskNames Listing of WorkTaskModel names to be loaded. Empty list results in loading all WorkTaskModel instances for the net.officefloor.compile.work.WorkType.
Returns:
net.officefloor.model.change.Change to refactor the WorkModel.
	<W extends WorkChange<WorkModelrefactorWork(WorkModel workModel,
			String workNameString workSourceClassName,
			PropertyList propertiesWorkType<W> workType,
			Map<StringStringworkTaskNameMapping,
			Map<StringMap<StringString>> workTaskToObjectNameMapping,
			Map<StringMap<StringString>> taskToFlowNameMapping,
			Map<StringMap<StringString>> taskToEscalationTypeMapping,
			String... taskNames);

	<W extends Work, D extends Enum<D>, F extends Enum<F>> Change<WorkTaskModeladdWorkTask(
			WorkModel workModelTaskType<W, D, F> taskType);

Removes the WorkTaskModel from the WorkModel.

Parameters:
workModel WorkModel to have the WorkTaskModel removed.
taskModel WorkTaskModel to be removed.
Returns:
net.officefloor.model.change.Change to remove the WorkTaskModel from the WorkModel.
			WorkTaskModel taskModel);

	<W extends Work, D extends Enum<D>, F extends Enum<F>> Change<TaskModeladdTask(
			String taskNameWorkTaskModel workTaskModel,
			TaskType<W, D, F> taskType);

Removes the TaskModel from the DeskModel.

Parameters:
taskModel TaskModel to be removed.
Returns:
net.officefloor.model.change.Change to remove the TaskModel from the DeskModel.
Renames the TaskModel.

Parameters:
taskModel TaskModel to be renamed.
newTaskName New name for the TaskModel.
Returns:
net.officefloor.model.change.Change to rename the TaskModel.
	Change<TaskModelrenameTask(TaskModel taskModelString newTaskName);

Specifies a WorkTaskObjectModel as a parameter or an object.

Parameters:
isParameter true for the WorkTaskObjectModel to be a parameter. false to be a dependency object.
taskObjectModel WorkTaskObjectModel to set as a parameter or object.
Returns:
net.officefloor.model.change.Change to set the WorkTaskObjectModel as a parameter or object.
			WorkTaskObjectModel taskObjectModel);

Specifies a TaskModel as public/private.

Parameters:
isPublic true for the TaskModel to be public. false for the TaskModel to be private.
taskModel TaskModel to set public/private.
Returns:
net.officefloor.model.change.Change to set the TaskModel public/private.
	Change<TaskModelsetTaskAsPublic(boolean isPublicTaskModel taskModel);

Adds an ExternalFlowModel to the DeskModel.

Parameters:
externalFlowName Name of the ExternalFlowModel.
argumentType Argument type for the ExternalFlowModel.
Returns:
net.officefloor.model.change.Change to add the ExternalFlowModel.
			String argumentType);

Removes an ExternalFlowModel from the DeskModel.

Parameters:
externalFlow ExternalFlowModel for removal from the DeskModel.
Returns:
net.officefloor.model.change.Change to remove the ExternalFlowModel from the DeskModel.
Renames the ExternalFlowModel.

Parameters:
externalFlow ExternalFlowModel to rename.
newExternalFlowName New name for the ExternalFlowModel.
Returns:
net.officefloor.model.change.Change to rename the ExternalFlowModel.
			ExternalFlowModel externalFlowString newExternalFlowName);

Adds an ExternalManagedObjectModel to the DeskModel.

Parameters:
externalManagedObjectName Name of the ExternalManagedObjectModel.
objectType Object type for the ExternalManagedObjectModel.
Returns:
net.officefloor.model.change.Change to add the ExternalManagedObjectModel.
			String externalManagedObjectNameString objectType);

Removes an ExternalManagedObjectModel from the DeskModel.

Parameters:
externalManagedObject ExternalManagedObjectModel to remove from the DeskModel.
Returns:
net.officefloor.model.change.Change to remove the ExternalManagedObjectModel from the DeskModel.
			ExternalManagedObjectModel externalManagedObject);

Renames the ExternalManagedObjectModel.

Parameters:
externalManagedObject ExternalManagedObjectModel to rename.
newExternalManagedObjectName New name for the ExternalManagedObjectModel.
Returns:
net.officefloor.model.change.Change to rename the ExternalManagedObjectModel.
			ExternalManagedObjectModel externalManagedObject,
			String newExternalManagedObjectName);

			String managedObjectSourceName,
			String managedObjectSourceClassNamePropertyList properties,
			long timeoutManagedObjectType<?> managedObjectType);

Removes the DeskManagedObjectSourceModel.

Parameters:
managedObjectSource DeskManagedObjectSourceModel to remove.
Returns:
net.officefloor.model.change.Change to remove the DeskManagedObjectSourceModel .
			DeskManagedObjectSourceModel managedObjectSource);

Renames the DeskManagedObjectSourceModel.

Parameters:
managedObjectSource DeskManagedObjectSourceModel to rename.
newManagedObjectSourceName New name for the DeskManagedObjectSourceModel.
Returns:
net.officefloor.model.change.Change to rename the DeskManagedObjectSourceModel .
			DeskManagedObjectSourceModel managedObjectSource,
			String newManagedObjectSourceName);

			String managedObjectNameManagedObjectScope managedObjectScope,
			DeskManagedObjectSourceModel managedObjectSource,
			ManagedObjectType<?> managedObjectType);

Removes the DeskManagedObjectModel.

Parameters:
managedObject DeskManagedObjectModel to remove.
Returns:
net.officefloor.model.change.Change to remove the DeskManagedObjectModel.
			DeskManagedObjectModel managedObject);

Renames the DeskManagedObjectModel.

Parameters:
managedObject DeskManagedObjectModel to rename.
newManagedObjectName New name for the DeskManagedObjectModel.
Returns:
net.officefloor.model.change.Change to rename the DeskManagedObjectModel.
			DeskManagedObjectModel managedObjectString newManagedObjectName);

			DeskManagedObjectModel managedObject,
			ManagedObjectScope newManagedObjectScope);

			WorkTaskObjectModel workTaskObject,
			ExternalManagedObjectModel externalManagedObject);

			WorkTaskObjectToExternalManagedObjectModel objectToExternalManagedObject);

			WorkTaskObjectModel workTaskObject,
			DeskManagedObjectModel managedObject);

			WorkTaskObjectToDeskManagedObjectModel workTaskObjectToManagedObject);

			TaskModel taskFlowInstigationStrategyEnum instigationStrategy);

Removes the TaskFlowToTaskModel.

Parameters:
taskFlowToTask TaskFlowToTaskModel to remove.
Returns:
net.officefloor.model.change.Change to remove TaskFlowToTaskModel.
			TaskFlowToTaskModel taskFlowToTask);

			TaskFlowModel taskFlowExternalFlowModel externalFlow,
			FlowInstigationStrategyEnum instigationStrategy);

Removes the TaskFlowToExternalFlowModel.

Parameters:
taskFlowToExternalFlow TaskFlowToExternalFlowModel to remove.
Returns:
net.officefloor.model.change.Change to remove TaskFlowToExternalFlowModel.
			TaskFlowToExternalFlowModel taskFlowToExternalFlow);

Links TaskModel to next TaskModel.

Parameters:
task TaskModel.
next Next TaskModel.
Returns:
net.officefloor.model.change.Change to add a TaskToNextTaskModel.
			TaskModel nextTask);

Removes the TaskToNextTaskModel.

Parameters:
taskToNextTask TaskToNextTaskModel to remove.
Returns:
net.officefloor.model.change.Change to remove TaskToNextTaskModel.
			TaskToNextTaskModel taskToNextTask);

Links TaskModel to next ExternalFlowModel.

Parameters:
task TaskModel.
nextExternalFlow Next ExternalFlowModel.
Returns:
net.officefloor.model.change.Change to add a TaskToNextExternalFlowModel.
			TaskModel taskExternalFlowModel nextExternalFlow);

Removes the TaskToNextExternalFlowModel.

Parameters:
taskToNextExternalFlow TaskToNextExternalFlowModel to remove.
Returns:
net.officefloor.model.change.Change to remove TaskToNextExternalFlowModel.
			TaskToNextExternalFlowModel taskToNextExternalFlow);

			TaskEscalationModel taskEscalationTaskModel task);

Removes the TaskEscalationToTaskModel.

Parameters:
taskEscalationToTask TaskEscalationToTaskModel to remove.
Returns:
net.officefloor.model.change.Change to remove TaskEscalationToTaskModel.
			TaskEscalationToTaskModel taskEscalationToTask);

			TaskEscalationModel taskEscalationExternalFlowModel externalFlow);

			TaskEscalationToExternalFlowModel taskEscalationToExternalFlow);

Links the WorkModel to its initial TaskModel.

Parameters:
work WorkModel.
initialTask Initial TaskModel.
Returns:
net.officefloor.model.change.Change to add a WorkToInitialTaskModel.
			TaskModel initialTask);

Removes the WorkToInitialTaskModel.

Parameters:
workToInitialTask WorkToInitialTaskModel to remove.
Returns:
net.officefloor.model.change.Change to remove WorkToInitialTaskModel.
			WorkToInitialTaskModel workToInitialTask);

			DeskManagedObjectSourceFlowModel managedObjectSourceFlow,
			TaskModel task);

			DeskManagedObjectSourceFlowToTaskModel managedObjectSourceFlowToTask);

			DeskManagedObjectSourceFlowModel managedObjectSourceFlow,
			ExternalFlowModel externalFlow);

			DeskManagedObjectSourceFlowToExternalFlowModel managedObjectSourceFlowToExternalFlow);

			DeskManagedObjectModel managedObject);

			ExternalManagedObjectModel externalManagedObject);

New to GrepCode? Check out our FAQ X