package com.c2kernel.process.module; import com.c2kernel.common.CannotManageException; import com.c2kernel.common.ObjectAlreadyExistsException; import com.c2kernel.common.ObjectCannotBeUpdated; import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.lookup.AgentPath; import com.c2kernel.lookup.DomainPath; import com.c2kernel.lookup.InvalidItemPathException; import com.c2kernel.lookup.ItemPath; public abstract class ModuleImport { protected String ns; protected String name; protected DomainPath domainPath; protected ItemPath itemPath; public ModuleImport() { } public abstract void create(AgentPath agentPath, boolean reset) throws ObjectNotFoundException, ObjectCannotBeUpdated, CannotManageException, ObjectAlreadyExistsException; public void setID( String uuid ) throws InvalidItemPathException { if (uuid != null && uuid.length() > 0) itemPath = new ItemPath(uuid); } public String getID() { return itemPath==null?null:itemPath.getUUID().toString(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public void setNamespace(String ns) { this.ns = ns; } public String getNamespace() { return ns; } public DomainPath getDomainPath() { return domainPath; } public void setDomainPath(DomainPath domainPath) { this.domainPath = domainPath; } public ItemPath getItemPath() { return itemPath; } public void setItemPath(ItemPath itemPath) { this.itemPath = itemPath; } }