89 lines
2.9 KiB
Java
89 lines
2.9 KiB
Java
/*
|
|
* Copyright (c) 2013 Jens Pelzetter
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
* as published by the Free Software Foundation; either version 2.1 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
*/
|
|
package com.arsdigita.cms.contentassets;
|
|
|
|
import com.arsdigita.cms.contentassets.ui.LibrarySignaturesStep;
|
|
import com.arsdigita.cms.contenttypes.ContentAssetInitializer;
|
|
import com.arsdigita.cms.contenttypes.Publication;
|
|
import com.arsdigita.cms.dispatcher.SimpleXMLGenerator;
|
|
import com.arsdigita.domain.DomainObjectTraversal;
|
|
import com.arsdigita.domain.SimpleDomainObjectTraversalAdapter;
|
|
import com.arsdigita.globalization.GlobalizedMessage;
|
|
import com.arsdigita.runtime.DomainInitEvent;
|
|
|
|
/**
|
|
*
|
|
* @author Jens Pelzetter <jens@jp-digital.de>
|
|
* @version $Id$
|
|
*/
|
|
public class LibrarySignaturesInitializer extends ContentAssetInitializer {
|
|
|
|
public LibrarySignaturesInitializer() {
|
|
super("ccm-sci-publications-librarysignatures.pdl.mf");
|
|
}
|
|
|
|
@Override
|
|
public void init(final DomainInitEvent event) {
|
|
super.init(event);
|
|
|
|
DomainObjectTraversal.registerAdapter(
|
|
LibrarySignature.BASE_DATA_OBJECT_TYPE,
|
|
new SimpleDomainObjectTraversalAdapter(),
|
|
SimpleXMLGenerator.ADAPTER_CONTEXT);
|
|
}
|
|
|
|
@Override
|
|
public String getBaseType() {
|
|
return Publication.BASE_DATA_OBJECT_TYPE;
|
|
}
|
|
|
|
@Override
|
|
public String getTraversalXML() {
|
|
return TRAVERSAL_ADAPTER_BASE_DIR + "LibrarySignatures.xml";
|
|
}
|
|
|
|
@Override
|
|
public String getProperty() {
|
|
return "librarysignatures";
|
|
}
|
|
|
|
@Override
|
|
public Class getAuthoringStep() {
|
|
return LibrarySignaturesStep.class;
|
|
}
|
|
|
|
@Override
|
|
public GlobalizedMessage getAuthoringStepLabel() {
|
|
return new GlobalizedMessage("com.arsdigita.cms.contentassets.librarysignatures.label",
|
|
"com.arsdigita.cms.contentassets.LibrarySignaturesResources");
|
|
}
|
|
|
|
@Override
|
|
public GlobalizedMessage getAuthoringStepDescription() {
|
|
return new GlobalizedMessage("com.arsdigita.cms.contentassets.librarysignatures.description",
|
|
"com.arsdigita.cms.contentassets.LibrarySignaturesResources");
|
|
}
|
|
|
|
@Override
|
|
public int getAuthoringStepSortKey() {
|
|
return 10;
|
|
}
|
|
|
|
}
|