java.lang.Object
com.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData
com.flexstor.common.data.ejb.disguiserecord.DisguiseBucketRecordData
- All Implemented Interfaces:
- java.io.Serializable
- public class DisguiseBucketRecordData
- extends GenericBucketRecordData
DisguiseBucketRecordData is a class that encapsulates
data for the initialization of PreIdxService.
- Since:
- FLEXSTOR.db 3.0
Revision History Description of Change
---------------- ---------------------------------------------------
WT 05/11/99 Creation
- Version:
- 1.0, 05/11/99
| Fields inherited from class com.flexstor.common.data.ejb.Data |
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE |
|
Method Summary |
void |
addBucketChild(DisguiseBucketRecordData child)
|
void |
addElement(DisguiseElementRecordData element)
|
java.lang.Object |
cloneBucket(boolean bFullClone)
Clones the bucket. |
boolean |
deleteAsset(DisguiseAssetRecordData assetToDelete,
int[] nAssetsDeleted)
Will delete assets that meet the criteria of the argument asset. |
boolean |
deleteAssets(java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Delete the assets that matches the role, type and temp/parent flag specified. |
void |
deleteBucket(DisguiseBucketRecordData bucketToDelete,
int[] nBucketsDeleted)
Delete all buckets that are represented by the argument bucket. |
void |
deleteElement(DisguiseElementRecordData elementToDelete,
int[] nElementsDeleted)
Delete all elements that are represented by the argument element. |
void |
deleteTempAssets()
|
void |
getAssets(java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Get the assets that matches the role, type and temp/parent flag specified |
(package private) void |
getAssets(java.util.Vector vTraversalPath,
java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Get the assets that matches the role, type and temp/parent flag specified |
DisguiseBucketRecordData[] |
getBuckets()
|
java.util.Vector |
getBucketsAsVector()
|
DisguiseElementRecordData[] |
getElements()
|
java.util.Vector |
getElementsAsVector()
|
void |
getPrimaryAssets(java.util.Vector vAssets)
Get all primary assets |
boolean |
removePrimaryAssetsNotInRoleType(java.lang.String sRole,
java.lang.String sType)
Delete all primary assets which role and type are not equal to the arguments
If there are no elements and child buckets left in this bucket, then return
true so the caller can remove this bucket from the list. |
boolean |
setBuckets(DisguiseBucketRecordData[] buckets)
|
boolean |
setElements(DisguiseElementRecordData[] elements)
|
| Methods inherited from class com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData |
addValue, cloneRecord, getBucketStructId, getDescription, getRecordId, getTraversalInfo, getTraversalPath, getValues, setBucketStructId, setDescription, setRecordId, setTraversalInfo, setTraversalInfo, setTraversalPath, setValues |
| Methods inherited from class com.flexstor.common.data.ejb.Data |
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vChildBucketsThisLevel
protected java.util.Vector vChildBucketsThisLevel
vElementsThisLevel
protected java.util.Vector vElementsThisLevel
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
DisguiseBucketRecordData
public DisguiseBucketRecordData()
getElements
public DisguiseElementRecordData[] getElements()
getElementsAsVector
public java.util.Vector getElementsAsVector()
setElements
public boolean setElements(DisguiseElementRecordData[] elements)
addBucketChild
public void addBucketChild(DisguiseBucketRecordData child)
addElement
public void addElement(DisguiseElementRecordData element)
getBuckets
public DisguiseBucketRecordData[] getBuckets()
getBucketsAsVector
public java.util.Vector getBucketsAsVector()
setBuckets
public boolean setBuckets(DisguiseBucketRecordData[] buckets)
deleteTempAssets
public void deleteTempAssets()
getAssets
public void getAssets(java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
- Get the assets that matches the role, type and temp/parent flag specified
getAssets
void getAssets(java.util.Vector vTraversalPath,
java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
- Get the assets that matches the role, type and temp/parent flag specified
getPrimaryAssets
public void getPrimaryAssets(java.util.Vector vAssets)
- Get all primary assets
removePrimaryAssetsNotInRoleType
public boolean removePrimaryAssetsNotInRoleType(java.lang.String sRole,
java.lang.String sType)
- Delete all primary assets which role and type are not equal to the arguments
If there are no elements and child buckets left in this bucket, then return
true so the caller can remove this bucket from the list.
deleteAssets
public boolean deleteAssets(java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
- Delete the assets that matches the role, type and temp/parent flag specified.
This method will return true only if there were elements and/or buckets at this
level and all of them were deleted. If no elements or buckets were present in
this bucket, it will not be deleted. This is to allow to import buckets which
were meant to be empty.
deleteAsset
public boolean deleteAsset(DisguiseAssetRecordData assetToDelete,
int[] nAssetsDeleted)
- Will delete assets that meet the criteria of the argument asset.
deleteElement
public void deleteElement(DisguiseElementRecordData elementToDelete,
int[] nElementsDeleted)
- Delete all elements that are represented by the argument element.
This call is recursive; it will parse all the tree structure until the desired element is found;
if multiple instances of this element are found, all of them will be removed.
deleteBucket
public void deleteBucket(DisguiseBucketRecordData bucketToDelete,
int[] nBucketsDeleted)
- Delete all buckets that are represented by the argument bucket.
This call is recursive; it will parse all the tree structure until the desired bucket is found;
if multiple instances of this bucket are found, all of them will be removed.
cloneBucket
public java.lang.Object cloneBucket(boolean bFullClone)
- Clones the bucket. The bFullClone argument determines if this clone will
include a clone copy of all children of this bucket, or not. This provides
for creating lite clones of the object.