Tuesday, December 22, 2009

Backups for QA and Prod before starting 7.6 upgrades

Database:
  • Perform exports of schemas VCMMGMT, VCMLIVE, VAPSYSPREV, VAPSYSLIVE (does export work with db shutdown? Otherwise make sure all processes are stopped.
Ideal is save an image onto VM and have it available for files etc.

VCM Server:
  • /opt/Vignette
  • /opt/SAP-JCo
  • ~/Vignette
  • ~/vpd.properties
  • /usr/local/tomcat
  • /etc/profile.d/tomcat.sh
  • Apache config files from /etc/apache2/ (httpd.conf and files under vhosts.d)
  • JDK dir?
  • /etc/apache2 (whole directory, including SSL certs)
  • /etc/sysconfig/apache2 (file)
  • see if anything needs to be backed up in /srv folder
  • Copy over entier /home/vgnadmin (esp Export-Import folder with ant scripts for export import of objects)

Web Servers:
  • /opt/Vignette
  • /opt/SAP-JCo
  • ~/Vignette
  • ~/vpd.properties
  • /usr/local/tomcat
  • /etc/profile.d/tomcat.sh
  • /srv/www/vhosts
  • Apache config files
  • JDK dir?
  • /etc/apache2 (whole directory, including SSL certs)
  • /etc/sysconfig/apache2 (file)

Autonomy server:
  • /opt/Vignette
  • ~/Vignette
  • ~/vpd.properties

Tuesday, December 8, 2009

Create Channel

public Channel createSubChannel(Channel parentChannel, String channelName)
throws AuthorizationException, ApplicationException,
ValidationException {

// Create a new channel
Channel channel = new Channel();

// Configure the channel as requested
ChannelData channelData = channel.getData();

channelData.setParentChannelRef(new ChannelRef(parentChannel));
channelData.setName(channelName);

// Save the channel
channel.commit();

// Return the channel
return channel;
}
==============================
System.out.println("Creating SubChannel " + name + "...");

//Create sub channels for Home Channel
Channel homeChannel = newSite.getHomeChannel();
ChannelRef parent = new ChannelRef( mHomeChannel );
ChannelData subChannelData = new ChannelData();

subChannelData.setName("mysubchannel");
subChannelData.setDescription("This is a subchannel of the Home Channel");
subChannelData.setOrderAsSibling(sibOrder);
subChannelData.setParentChannelRef(parent);

Channel subChannel = new Channel();

subChannel.setData(subData);
//Approve the channel
subChannel.setStatus("approved");
subChannel.commit();
System.out.println("Created SubChannel " + name);


//Associate the content instance to the mysubchannel
ChannelContentAssociationData ciTestAssocData = new
ChannelContentAssociationData();
ci = (ContentInstance)ContentInstance.findByContentManagementId( mgmtId );
ciTestAssocData.setContentRef(ci.getContentManagementId());
subChannelData.addContentAssociations(ciTestAssocData);
subChannel.commit();