|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectblackboard.admin.persist.course.CloneConfig
public class CloneConfig
This object describes portions of the CourseSite or Organization that are
to be cloned. It is also used to store some state information during the cloning as it is the one object used throughout. Pending addition of
CourseToc areas the following occurs: Inclusion of Content as an Area with the configuration overrides any
selected CourseToc items guaranteeing all available content areas will be included.
| Nested Class Summary | |
|---|---|
static class |
CloneConfig.Area
|
static class |
CloneConfig.CopyType
|
| Field Summary | |
|---|---|
private boolean |
_archiveCSItems
|
private java.util.ArrayList<java.lang.String> |
_areaList
|
private java.lang.Boolean |
_bReconcile
|
(package private) CloneCallback |
_callback
|
private boolean |
_cloneForDecrossList
|
private CloneConfig.CopyType |
_copyType
|
private java.lang.String |
_csDir
|
private boolean |
_csDirVerified
|
private java.util.ArrayList<java.lang.String> |
_cxComponentList
|
private java.util.Set<java.lang.String> |
_excludedCsFolderIds
|
private boolean |
_fromAdminPanel
|
private boolean |
_hadWarnings
|
private java.lang.String |
_hostName
|
private java.util.Map<CloneConfig.Area,java.util.Set<java.lang.String>> |
_includeObjectMap
|
private boolean |
_isCommandLineRequest
|
private java.lang.Boolean |
_isSrcIntegrated
|
private java.lang.String |
_loggedOnUser
|
(package private) java.util.ArrayList<CourseToc> |
_originalTargetCourseTocList
|
private java.lang.String |
_rawCsDir
|
private java.lang.String |
_sourceName
|
private java.lang.String |
_srcHomeDir
|
private java.lang.String |
_strDataSourceId
|
(package private) java.util.Map<java.lang.String,CourseToc> |
_tocAreaMap
|
private java.util.ArrayList<java.lang.String> |
_tocIdList
|
private java.lang.Integer |
_tranCount
|
private boolean |
_useCourseCopyLog
|
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
CloneConfig()
Creates an instance of CloneConfig with default property values. |
|
| Method Summary | |
|---|---|
boolean |
canUseCourseCopyLog()
Whether to use the Course Copy Log for logging. |
void |
excludeArea(CloneConfig.Area area)
Used to disable portions from being copied. |
void |
excludeArea(CourseToc area)
Used to include actual Course Toc areas. |
void |
excludeArea(Id areaId)
Used to include actual Course Toc Id areas. |
CloneCallback |
getCallback()
Returns callback object to be used for cloning process. |
CloneConfig.CopyType |
getCopyType()
Gets the type of the clone operation as CloneConfig.CopyType. |
java.util.List<java.lang.String> |
getCourseTocIdList()
Get CourseToc Id list |
java.lang.String |
getCsDir()
Gets the validated or final value of target parent Content System directory used in cloning Course Files. |
boolean |
getCsDirVerified()
Returns the flag that indicates whether the target Content System directory has been verified as valid. |
java.util.Set<java.lang.String> |
getExcludedCsFolderIds()
Gets the Set of Content System entries to exclude during copy. |
java.lang.String |
getHostName()
Returns the host name in the case of the copy operation is invoked from the command line. |
java.util.Set<java.lang.String> |
getIncludedObjects(CloneConfig.Area eArea)
Returns a list of Strings per the objects included within given area. |
boolean |
getIsCommandLineRequest()
Returns whether this is a command line operation. |
java.lang.String |
getLoggedOnUser()
|
int |
getMaximumTransactionCount()
Returns maximum number of transactions allowed before a commit. |
Id |
getMembershipDataSourceId()
Get id associated with data source to be used for membership clone operation. |
java.util.ArrayList<CourseToc> |
getOriginalTargetCourseTocList()
Returns the list of original list of course menu items from the target course |
java.lang.String |
getRawCsDir()
Gets the raw user input for target parent Content System directory used in cloning Course Files. |
java.lang.Boolean |
getReconcileFlag()
Get flag denoting whether target should be reconciled against source course. |
CourseToc |
getRegisteredCourseToc(Id id)
Get CourseToc associated with provided Id |
java.lang.String |
getSourceName()
Gets the localized name of the copy operation, e.g. |
java.lang.String |
getSrcHomeDir()
Gets the default/home directory of the source course's Course Files. |
boolean |
getSuppressEvents()
Deprecated. Since 9.1SP8. Copy events are always fired and cannot be turned off. |
void |
includeArea(CloneConfig.Area area)
Used to enable portions to be copied. |
void |
includeArea(CourseToc area)
Used to include actual Course Toc areas. |
void |
includeArea(Id areaId)
Used to include actual Course Toc Id areas. |
void |
includeCxComponent(java.lang.String componentHandle)
|
void |
includeObject(CloneConfig.Area eArea,
java.lang.String strId)
Includes the provided object (identified by a value from CloneConfig.Area and string-based identifier) as part of the
current operation. |
boolean |
isAreaIncluded(CloneConfig.Area area)
Return confirmation if provided area is included in the clone process. |
boolean |
isAreaIncluded(CourseToc area)
Return confirmation if provided CourseToc is included in the clone process. |
boolean |
isAreaIncluded(Id area)
Return confirmation if provided CourseToc Id area is included in the clone process. |
boolean |
isCloneForDecrossList()
Returns whether this copy operation is for de-cross listing a child course |
boolean |
isCxComponentIncluded(java.lang.String componentHandle)
|
boolean |
isFromAdminPanel()
Returns whether this copy operation was initiated from the Administrator Panel |
boolean |
isHadWarnings()
Returns whether there are any warnings during the clone operation. |
boolean |
isSrcIntegrated()
|
void |
resetCsDir()
Resets the verified target parent Content System directory and the associated boolean indicator used in cloning Course Files . |
void |
setArchiveCSItems(boolean archiveCSItems)
Sets whether to include Course Files in the clone operation. |
void |
setCallback(CloneCallback callback)
Establishes callback object to be used for cloning process. |
void |
setCloneForDecrossList(boolean cloneForDecrossList)
Sets whether this copy operation is for de-cross listing a child course |
void |
setCopyType(CloneConfig.CopyType copyType)
Sets the type of the clone operation using CloneConfig.CopyType. |
void |
setCopyType(java.lang.String copyType)
Sets the type of the clone operation using the mapping name of CloneConfig.CopyType. |
void |
setCsDir(java.lang.String csDir)
Sets the validated or final value of target parent Content System directory used in cloning Course Files. |
void |
setCsDirVerified(boolean csDirVerified)
Sets whether the target Content System directory has been verified as valid. |
void |
setExcludedCsFolderIds(java.lang.String[] excludedXythosIds)
Sets the Set of Content System entries to exclude during copy. |
void |
setHadWarnings(boolean hadWarnings)
Sets whether there are any warnings during the clone operation. |
void |
setHostName(java.lang.String hostName)
Sets the host name in the case of the copy operation is invoked from the command line. |
void |
setIsCommandLineRequest(boolean commandLineRequest)
Sets whether this is a command line operation. |
void |
setIsFromAdminPanel(boolean fromAdminPanel)
Sets whether this copy operation was initiated from the Administrator Panel |
void |
setIsSrcIntegrated(boolean val)
|
void |
setLoggedOnUser(java.lang.String loggedOnUser)
|
void |
setMaximumTransactionCount(int tranCount)
Sets maximum number of transactions allowed before a commit. |
void |
setMembershipDataSourceId(Id dataSourceId)
Set Id of data source to be used for membership clone operation. |
void |
setOriginalTargetCourseTocList(java.util.ArrayList<CourseToc> originalTargetCourseTocList)
Sets a list of the original list of course menu items from the target course |
void |
setRawCsDir(java.lang.String rawCsDir)
Sets the raw user input for target parent Content System directory used in cloning Course Files. |
void |
setReconcileFlag(java.lang.Boolean reconcile)
Set flag denoting whether target should be reconciled against source course. |
void |
setSourceName(java.lang.String name)
Gets the localized name of the copy operation, e.g. |
void |
setSrcHomeDir(java.lang.String srcHomeDir)
Sets the default/home directory of the source course's Course Files. |
void |
setSuppressEvents(boolean val)
Deprecated. Since 9.1SP8. Copy events are always fired and cannot be turned off. |
void |
setUseCourseCopyLog(boolean useCopyLog)
Sets whether the Clone process should use the Course Copy Log for logging. |
boolean |
shouldCopyAllCSItems()
Returns whether all course files are included. |
boolean |
shouldCopyAnyCSItems()
Returns whether (any) course files should be copied. |
boolean |
shouldCopyCSItemByArea()
Returns whether course files are included and whether only referenced files are copied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Integer _tranCount
private final java.util.ArrayList<java.lang.String> _areaList
private final java.util.ArrayList<java.lang.String> _cxComponentList
private final java.util.ArrayList<java.lang.String> _tocIdList
private java.lang.Boolean _bReconcile
private java.lang.String _strDataSourceId
private java.lang.Boolean _isSrcIntegrated
transient java.util.Map<java.lang.String,CourseToc> _tocAreaMap
transient CloneCallback _callback
transient java.util.ArrayList<CourseToc> _originalTargetCourseTocList
private java.lang.String _hostName
private java.lang.String _sourceName
private boolean _isCommandLineRequest
private boolean _hadWarnings
private boolean _archiveCSItems
private java.lang.String _rawCsDir
private java.lang.String _csDir
private boolean _csDirVerified
private java.lang.String _srcHomeDir
private CloneConfig.CopyType _copyType
private java.util.Set<java.lang.String> _excludedCsFolderIds
private boolean _fromAdminPanel
private boolean _useCourseCopyLog
private java.lang.String _loggedOnUser
private boolean _cloneForDecrossList
private final java.util.Map<CloneConfig.Area,java.util.Set<java.lang.String>> _includeObjectMap
static final long serialVersionUID
| Constructor Detail |
|---|
public CloneConfig()
CloneConfig with default property values.
| Method Detail |
|---|
public java.lang.Boolean getReconcileFlag()
Boolean flagpublic void setReconcileFlag(java.lang.Boolean reconcile)
reconcile - Boolean flagpublic Id getMembershipDataSourceId()
Id Data source idpublic void setMembershipDataSourceId(Id dataSourceId)
dataSourceId - Boolean flagpublic java.util.List<java.lang.String> getCourseTocIdList()
CourseToc Id list
public CourseToc getRegisteredCourseToc(Id id)
CourseToc associated with provided Id
id - Internal identifer for CourseToc
public void includeArea(CourseToc area)
area - CourseToc to be included.public void includeArea(Id areaId)
areaId - CourseToc area Id to be included.public void excludeArea(CourseToc area)
area - CourseToc area to be included.public void excludeArea(Id areaId)
areaId - CourseToc area Id to be excluded.public boolean isAreaIncluded(CourseToc area)
area - Representation of area under study.
public boolean isAreaIncluded(Id area)
area - Representation of area under study.
public boolean isCxComponentIncluded(java.lang.String componentHandle)
public void includeCxComponent(java.lang.String componentHandle)
public void includeArea(CloneConfig.Area area)
area - Designates area to be included.
public void includeObject(CloneConfig.Area eArea,
java.lang.String strId)
CloneConfig.Area and string-based identifier) as part of the
current operation. Object inclusion is only valid if the CloneConfig.CopyType is COPY_EXISTING_COURSE
eArea - a CloneConfig.Area value denoting the area of the object to to include. This is necessary because
the id of an item is only guaranteed to be unique within a given areastrId - the id of the object as a String. The form of this id string is container specific and may not be a true
'id' as is the case for settings restrictionspublic java.util.Set<java.lang.String> getIncludedObjects(CloneConfig.Area eArea)
eArea - a CloneConfig.Area value denoting the area of the object to to include.public void excludeArea(CloneConfig.Area area)
area - Designates area to be excluded.public boolean isAreaIncluded(CloneConfig.Area area)
area - Representation of area under study.
public void setCallback(CloneCallback callback)
callback - CloneCallback object to be used in cloning.public CloneCallback getCallback()
CloneCallback object to be used in cloning.public void setOriginalTargetCourseTocList(java.util.ArrayList<CourseToc> originalTargetCourseTocList)
originalTargetCourseTocList - List of CourseToc objectspublic java.util.ArrayList<CourseToc> getOriginalTargetCourseTocList()
CourseToc objectspublic int getMaximumTransactionCount()
public void setMaximumTransactionCount(int tranCount)
tranCount - integer designated transactions allowed@Deprecated public boolean getSuppressEvents()
@Deprecated public void setSuppressEvents(boolean val)
public boolean isSrcIntegrated()
public void setIsSrcIntegrated(boolean val)
public java.lang.String getLoggedOnUser()
public void setLoggedOnUser(java.lang.String loggedOnUser)
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName - host name of the command line operation.public java.lang.String getSourceName()
public void setSourceName(java.lang.String name)
name - localized name of the copy operationpublic boolean getIsCommandLineRequest()
public void setIsCommandLineRequest(boolean commandLineRequest)
commandLineRequest - boolean flag to indicate whether it's a command line operation.public boolean isHadWarnings()
public void setHadWarnings(boolean hadWarnings)
hadWarnings - boolean flag to indicate whether there are any warnings during the clone operation.public void setArchiveCSItems(boolean archiveCSItems)
archiveCSItems - boolean flag to indicate whether Course Files should be included in the clone operation.public CloneConfig.CopyType getCopyType()
CloneConfig.CopyType.
public void setCopyType(CloneConfig.CopyType copyType)
CloneConfig.CopyType.
copyType - type of the operation.public void setCopyType(java.lang.String copyType)
CloneConfig.CopyType.
copyType - mapping name of CloneConfig.CopyTypepublic boolean getCsDirVerified()
public void setCsDirVerified(boolean csDirVerified)
csDirVerified - the boolean flag to indicate whether the Content System directory has been verified.public java.lang.String getSrcHomeDir()
public void setSrcHomeDir(java.lang.String srcHomeDir)
srcHomeDir - home directory of the source course's Course Files.public java.util.Set<java.lang.String> getExcludedCsFolderIds()
Set of Content System entries to exclude during copy.
Set of Content System entries to exclude during copy.public void setExcludedCsFolderIds(java.lang.String[] excludedXythosIds)
Set of Content System entries to exclude during copy.
excludedXythosIds - Set of Content System entries to exclude during copy.public java.lang.String getCsDir()
public void setCsDir(java.lang.String csDir)
csDir - validated or final value of target parent Content System directory used in cloning Course Files.public void resetCsDir()
_rawCsDir.
public java.lang.String getRawCsDir()
public void setRawCsDir(java.lang.String rawCsDir)
rawCsDir - raw data for target parent Content System directory used in cloning Course Files.public boolean shouldCopyCSItemByArea()
public boolean shouldCopyAllCSItems()
public boolean shouldCopyAnyCSItems()
public void setIsFromAdminPanel(boolean fromAdminPanel)
public boolean isFromAdminPanel()
public boolean isCloneForDecrossList()
public void setCloneForDecrossList(boolean cloneForDecrossList)
public void setUseCourseCopyLog(boolean useCopyLog)
public boolean canUseCourseCopyLog()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||