public class HomeCreationSpec extends Object
Constructor and Description |
---|
HomeCreationSpec() |
Modifier and Type | Method and Description |
---|---|
UserMessage |
getDescription() |
AdaptationHome |
getHomeToCopyPermissionsFrom() |
HomeKey |
getKey() |
UserMessage |
getLabel() |
Profile |
getOwner() |
AdaptationHome |
getParent() |
boolean |
isCopyParentValidationReports()
Indicates if the validation reports of the datasets
contained in the parent dataspace are copied during
the creation of the new dataspace.
|
boolean |
isRelationalModeDataSpace()
Deprecated.
since 6.0. Relational mode is obsolete.
|
void |
setCopyParentValidationReports(boolean copyValidationReports)
Specifies whether the validation reports of the datasets
contained in the parent dataspace must by copied in the child
to be created.
|
void |
setDescription(UserMessage description)
Specifies a description for the dataspace or snapshot to be created.
|
void |
setHomeToCopyPermissionsFrom(AdaptationHome aDataSpace)
Specifies that the permissions of the dataspace to be created will
be a copy of those of the specified dataspace.
|
void |
setKey(HomeKey aDataSpaceOrSnapshotKey)
Specifies the unique identifier of the dataspace or snapshot to be created.
|
void |
setLabel(UserMessage label)
Specifies the label of the dataspace or snapshot to create.
|
void |
setOwner(Profile anOwner)
Specifies the owner of the dataspace or snapshot to be created.
|
void |
setParent(AdaptationHome aDataSpace)
Specifies the parent dataspace of the new dataspace or snapshot to be created.
|
void |
setRelationalModeDataSpace(boolean isRelationalModeDataSpace)
Deprecated.
since 6.0. Relational mode is obsolete.
|
String |
toString() |
public HomeKey getKey()
setKey(HomeKey)
public void setKey(HomeKey aDataSpaceOrSnapshotKey)
This parameter is mandatory.
IllegalArgumentException
- if the specified identifier is null
,
if its name's length exceeds HomeKey.MAX_KEY_LENGTH
,
or if its name does not match HomeKey.KEY_PATTERN_COMPILED
public AdaptationHome getParent()
setParent(AdaptationHome)
public void setParent(AdaptationHome aDataSpace)
This parameter is mandatory.
IllegalArgumentException
- If the dataspace specified is a snapshot (currently, dataspaces and snapshots
must be created from a parent dataspace).public Profile getOwner()
setOwner(Profile)
public void setOwner(Profile anOwner)
This parameter is mandatory.
IllegalArgumentException
- If owner specified is null
.public UserMessage getLabel()
setLabel(UserMessage)
public void setLabel(UserMessage label)
If no label is specified, the dataspace or snapshot key
is displayed to the end-user.
AdaptationHome.getLabel()
public UserMessage getDescription()
setDescription(UserMessage)
public void setDescription(UserMessage description)
This possibly internationalized text is displayed in EBX® user interface when the user accesses the dataspace or snapshot.
AdaptationHome.getDescription()
public AdaptationHome getHomeToCopyPermissionsFrom()
public void setHomeToCopyPermissionsFrom(AdaptationHome aDataSpace)
If this method is not called, the permissions of the new dataspace will be determined from the Permissions of child dataspace when created defined in the permissions of the parent dataspace. If the current user of the session has one or several roles restricted by the restriction policy node, the most restrictive permissions will be applied. If no restrictions are defined for the current user, the least restrictive permissions will be applied.
This method is ignored for snapshots, as they do not have compatible permissions.
IllegalArgumentException
- If specified source is a snapshot (only dataspaces can be
used as a source for permissions, as snapshots do not have
compatible permissions.@Deprecated public boolean isRelationalModeDataSpace()
setRelationalModeDataSpace(boolean)
@Deprecated public void setRelationalModeDataSpace(boolean isRelationalModeDataSpace)
isRelationalModeDataSpace()
public void setCopyParentValidationReports(boolean copyValidationReports)
By default, the validation reports from the parent dataspace are copied.
Performance note: Avoiding the copy of the validation reports allows to prevent any delay on dataspace creation due to a concurrent validation process. As a counterpart, the created dataspace will start with an empty validation report.
copyValidationReports
- if false
, the validation reports of datasets contained in
the parent dataspace won't be copied when creating
the child dataspace. As a consequence, the datasets contained in the
child dataspace will be fully validated the first time a validation report
will be requested.
if true
, the validation reports of datasets contained in
the parent dataspace will be copied when creating
the child dataspace. The validation reports of the datasets contained in the
child dataspace will be up-to-date.Adaptation.getValidationReport()
public boolean isCopyParentValidationReports()
setCopyParentValidationReports(boolean)