@doc hierarchy="GMLDOM">
Class for DC Properties object
(c) SAP AG 2003-2006. All rights reserved.
/**
* A Development Component properties class.
* This is a Channel Object. It must be identical to its corresponding server side object
* defined in property _objectType.
*
* @author I043344
*
*/
class DCProperties implement env:IChannelObject;
<@doc>Gets the DC name
property name = "";
<@doc>Gets the DC URN
property urn = "";
<@doc>Gets the DC Vendor
property dcVendor = "";
// This property should not be used!
// (It's here because it is accessed directly in several places in code which were not changed, so this way they get empty string instead of null...)
<@doc>Gets the DC Prefix - DEPRECATED
property dcPrefix = "";
<@doc>Gets the SC Name
property scName = "";
<@doc>Gets the SC Vendor
property scVendor="";
<@doc>Gets the DC repository
property repository="";
<@doc>true if DC is synced in source control
property state = "";
<@doc>Gets the DC Language
property language = "";
<@doc>Gets the DC Domain
property domain = "";
<@doc>Gets the DC Nature
property nature = "";
<@doc>Gets last time the DC was synced
property lastSychedTime="";
<@doc scope="private">Gets the corresponding server side object path
property _objectType = "com.sap.visualcomposer.channelObjects.DCProperties";
<@doc scope="private">Gets the corresponding client side object path
property _gsObjectType = "dev:DCProperties";
<@doc scope="private">
virtual readonly property DC_PREFIX_SEPARATOR = '/';
<@doc>
Creates a new DC Proeprties object
constructor()
end
<@doc>
Sets DC name
method setName(name)
this.name = name;
end
<@doc>
Gets DC name
method getName()
return this.name;
end
<@doc>
Sets DC ID
method setId(id)
this.setName(id);
end
<@doc>
Gets DC ID
method getId()
return this.getName();
end
<@doc>
Sets SC Name
method setScName(scname)
this.scName = scname;
end
<@doc>
Gets SC Name
method getScName()
return this.scName;
end
<@doc>
Sets SC Vendor Name
method setScVendor(scvendor)
this.scVendor = scvendor;
end
<@doc>
Gets SC Vendor Name
method getScVendor()
return this.scVendor;
end
<@doc>
Sets DC urn
method setUrn(urn)
this.urn = urn;
end
<@doc>
Gets DC urn
method getUrn()
return this.urn;
end
<@doc>
Sets DC vendor
method setDcVendor(dcVendor)
this.dcVendor = dcVendor;
end
<@doc>
Gets DC vendor
method getDcVendor()
return this.dcVendor;
end
<@doc>
Sets DC vendor
method setVendor(vendor)
this.setDcVendor(vendor);
end
<@doc>
Gets DC repository
method getRepository()
return this.repository;
end
method setRepository(repository)
this.repository = repository;
end
<@doc>
Gets DC vendor
method getVendor()
return this.getDcVendor();
end
<@doc>
Sets DC name with old prefix and name
method setIdWithPrefix(dcPrefix, dcId)
this.setId(dcPrefix + this.DC_PREFIX_SEPARATOR + dcId);
this.dcPrefix = '';
end
<@doc>
@Deprecated
Sets DC prefix
method setDcPrefix(dcPrefix)
//this.dcPrefix = dcPrefix;
end
<@doc>
@Deprecated
Gets DC prefix
method getDcPrefix()
return "";//this.dcPrefix;
end
<@doc>
@Deprecated
Sets DC prefix
method setPrefix(prefix)
this.setDcPrefix(prefix);
end
<@doc>
@Deprecated
Gets DC prefix
method getPrefix()
return this.getDcPrefix();
end
<@doc>
Sets DC language
method setLanguage(language)
this.language = language;
end
<@doc>
Gets DC language
method getLanguage()
return this.language;
end
<@doc>
Sets DC domain
method setDomain(domain)
this.domain = domain;
end
<@doc>
Gets DC domain
method getDomain()
return this.domain;
end
<@doc>
Sets the DC state: deleted, synced, new etc...
method setState(state)
this.state = state;
end
<@doc>
Gets the DC state: synce, deleted, new etc...
method getState()
return this.state;
end
method setLastSychedTime(date)
this.lastSychedTime = DSTR(date) || "";
end
method getLastSychedTime()
return this.lastSychedTime;
end
method toLocation()
return $ENV.createObject('dev:Location','',this.getPrefix(),this.getRepository(),this.getScName(),this.getScVendor(),this.getId(),'',this.getDcVendor());
end
<@doc>
Clones DC object
method clone()
var obj = $ENV.createObject('dev:DCProperties');
obj.name = this.name;
obj.urn = this.urn;
obj.dcVendor = this.dcVendor;
obj.state = this.state;
obj.language = this.language;
obj.domain = this.domain;
obj.nature = this.nature;
obj.lastSychedTime = this.lastSychedTime;
return obj;
end