|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.configuration.CmsConfigurationCopyResource
public class CmsConfigurationCopyResource
Describes a resource to copy during the creation of a new resource.
Usually used in folder types to copy some default resources to the folder, but also usable for file resources.
| Field Summary | |
|---|---|
static String |
COPY_AS_NEW
Indicates "copy resources" should be copied with type CmsResource.COPY_AS_NEW. |
static String |
COPY_AS_PRESERVE
Indicates "copy resources" should be copied with type CmsResource.COPY_PRESERVE_SIBLING. |
static String |
COPY_AS_SIBLING
Indicates "copy resources" should be copied with type CmsResource.COPY_AS_SIBLING. |
| Constructor Summary | |
|---|---|
CmsConfigurationCopyResource(String source,
String target,
String type)
Creates a new copy resource info container. |
|
| Method Summary | |
|---|---|
String |
getSource()
Returns the source resource. |
String |
getTarget()
Returns the target resource (may contain macros). |
CmsResource.CmsResourceCopyMode |
getType()
Returns the type of the copy, for example "as new", "as sibling" etc. |
String |
getTypeString()
Returns the copy type as String. |
boolean |
isTargetWasNull()
Returns true if the original target configuration was null. |
boolean |
isTypeWasNull()
Returns true if the original type configuration was null. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COPY_AS_NEW
CmsResource.COPY_AS_NEW.
public static final String COPY_AS_PRESERVE
CmsResource.COPY_PRESERVE_SIBLING.
public static final String COPY_AS_SIBLING
CmsResource.COPY_AS_SIBLING.
| Constructor Detail |
|---|
public CmsConfigurationCopyResource(String source,
String target,
String type)
If target is null, the macro A_CmsResourceType.MACRO_RESOURCE_FOLDER_PATH is used as default.
If type is null, the copy type CmsResource.COPY_AS_NEW is used as default.
source - the source resourcetarget - the target resource (may contain macros)type - the type of the copy, for example "as new", "as sibling" etc| Method Detail |
|---|
public String getSource()
public String getTarget()
public CmsResource.CmsResourceCopyMode getType()
Possible types are CmsResource.COPY_AS_NEW,
CmsResource.COPY_AS_SIBLING and
CmsResource.COPY_PRESERVE_SIBLING.
public String getTypeString()
getType()public boolean isTargetWasNull()
true if the original target configuration was null.
true if the original target configuration was nullpublic boolean isTypeWasNull()
true if the original type configuration was null.
true if the original type configuration was nullpublic String toString()
toString in class ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||