Java Doc for StructuredArtifactHome.java in » ERP-CRM-Financial » sakai » org » sakaiproject » metaobj » shared » mgt » home » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
ERP CRM Financial
»
sakai
»
org.sakaiproject.metaobj.shared.mgt.home
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
org.sakaiproject.metaobj.shared.mgt.home
.XmlElementHome
org.sakaiproject.metaobj.shared.mgt.home
.StructuredArtifactHome
All known Subclasses:
org.sakaiproject.metaobj.shared.mgt.home
.StructuredArtifactDefinition
,
StructuredArtifactHome
public
class StructuredArtifactHome extends
XmlElementHome
implements
StructuredArtifactHomeInterface
,
WorksiteAware
,ApplicationContextAware,
Comparable
,
StreamableObjectHome
(Code)
Created by IntelliJ IDEA. User: John Ellis Date: May 17, 2004 Time: 2:52:00 PM To change this template use File | Settings | File Templates.
Field Summary
final
protected
static org.apache.commons.logging.Log
logger
Method Summary
protected
Artifact
addArtifact
(
Artifact
object)
protected
Element
addSchemaInfo
(
SchemaNode
schema)
public
Artifact
cloneArtifact
(
Artifact
copy,
String
newName)
public
int
compareTo
(
Object
o)
protected
Element
createInstructions
()
protected
Element
createNode
(
String
name,
String
value)
public
Element
getArtifactAsXml
(
Artifact
art)
public
ArtifactFinder
getArtifactFinder
()
public
byte[]
getBytes
(
StructuredArtifact
artifact)
public
String
getHostBaseUrl
()
public
IdManager
getIdManager
()
protected
byte[]
getInfoBytes
(
Artifact
object)
protected
InputStream
getInfoStream
(
Artifact
object)
protected
Element
getMetadata
(
Artifact
art)
public
PresentableObjectHome
getRepositoryHelper
()
public
String
getSiteId
()
public
InputStream
getStream
(
Id
artifactId)
protected
WorksiteManager
getWorksiteManager
()
public
boolean
isGlobal
()
public
boolean
isModifiable
()
public
boolean
isSystemOnly
()
public
StructuredArtifact
load
(
ContentResource
resource)
public
Artifact
load
(
Id
id)
protected
void
processFileElement
(Element element, Element data)
public
void
remove
(
Artifact
object)
protected
void
replaceFileRefs
(Element schemaData, Element data)
public
void
setApplicationContext
(ApplicationContext applicationContext)
public
void
setArtifactFinder
(
ArtifactFinder
artifactFinder)
public
void
setIdManager
(
IdManager
idManager)
public
void
setRepositoryHelper
(
PresentableObjectHome
repositoryHelper)
public
void
setSiteId
(
String
siteId)
public
Artifact
store
(
Artifact
object)
protected
Artifact
updateArtifact
(
Artifact
object)
Field Detail
logger
final
protected
static org.apache.commons.logging.Log logger
(Code)
Method Detail
addArtifact
protected
Artifact
addArtifact(
Artifact
object) throws
PersistenceException
(Code)
addSchemaInfo
protected
Element addSchemaInfo(
SchemaNode
schema)
(Code)
cloneArtifact
public
Artifact
cloneArtifact(
Artifact
copy,
String
newName) throws
PersistenceException
(Code)
compareTo
public
int compareTo(
Object
o)
(Code)
createInstructions
protected
Element createInstructions()
(Code)
createNode
protected
Element createNode(
String
name,
String
value)
(Code)
getArtifactAsXml
public
Element getArtifactAsXml(
Artifact
art)
(Code)
getArtifactFinder
public
ArtifactFinder
getArtifactFinder()
(Code)
getBytes
public
byte[] getBytes(
StructuredArtifact
artifact)
(Code)
getHostBaseUrl
public
String
getHostBaseUrl()
(Code)
getIdManager
public
IdManager
getIdManager()
(Code)
getInfoBytes
protected
byte[] getInfoBytes(
Artifact
object) throws
PersistenceException
(Code)
protected InputStream getFileStream(StructuredArtifact xmlObject) { StringBuffer sb = new StringBuffer();
format.format(new Object[]{getHostBaseUrl(), xmlObject.getId().getValue(), getType().getId().getValue(), getWorksiteManager().getCurrentWorksiteId() }, sb, new FieldPosition(0)); logger.debug("redirecting to: " + sb.toString()); InputStream is = new ByteArrayInputStream(sb.toString().getBytes());
return is; }
getInfoStream
protected
InputStream
getInfoStream(
Artifact
object) throws
PersistenceException
(Code)
getMetadata
protected
Element getMetadata(
Artifact
art)
(Code)
getRepositoryHelper
public
PresentableObjectHome
getRepositoryHelper()
(Code)
getSiteId
public
String
getSiteId()
(Code)
getStream
public
InputStream
getStream(
Id
artifactId)
(Code)
getWorksiteManager
protected
WorksiteManager
getWorksiteManager()
(Code)
isGlobal
public
boolean isGlobal()
(Code)
true if SAD is global (available to all worksites)
isModifiable
public
boolean isModifiable()
(Code)
isSystemOnly
public
boolean isSystemOnly()
(Code)
load
public
StructuredArtifact
load(
ContentResource
resource)
(Code)
load
public
Artifact
load(
Id
id) throws
PersistenceException
(Code)
processFileElement
protected
void processFileElement(Element element, Element data) throws JDOMException
(Code)
remove
public
void remove(
Artifact
object) throws
PersistenceException
(Code)
replaceFileRefs
protected
void replaceFileRefs(Element schemaData, Element data)
(Code)
setApplicationContext
public
void setApplicationContext(ApplicationContext applicationContext) throws BeansException
(Code)
setArtifactFinder
public
void setArtifactFinder(
ArtifactFinder
artifactFinder)
(Code)
setIdManager
public
void setIdManager(
IdManager
idManager)
(Code)
setRepositoryHelper
public
void setRepositoryHelper(
PresentableObjectHome
repositoryHelper)
(Code)
setSiteId
public
void setSiteId(
String
siteId)
(Code)
store
public
Artifact
store(
Artifact
object) throws
PersistenceException
(Code)
updateArtifact
protected
Artifact
updateArtifact(
Artifact
object) throws
PersistenceException
(Code)
Fields inherited from
org.sakaiproject.metaobj.shared.mgt.home.XmlElementHome
final
public
static
String
XML_HOME_PATH
(Code)
(Java Doc)
final
public
static
String
XSD_DIR
(Code)
(Java Doc)
final
protected
Log logger
(Code)
(Java Doc)
Methods inherited from
org.sakaiproject.metaobj.shared.mgt.home.XmlElementHome
public
void afterPropertiesSet() throws
Exception
(Code)
(Java Doc)
public
Artifact
cloneArtifact(
Artifact
copy,
String
newName) throws
PersistenceException
(Code)
(Java Doc)
public
Artifact
createInstance()
(Code)
(Java Doc)
public
Artifact
createSample()
(Code)
(Java Doc)
public
Collection
findByOwner(
Agent
owner) throws
FinderException
(Code)
(Java Doc)
public
Element getArtifactAsXml(
Artifact
art)
(Code)
(Java Doc)
public
byte[] getBytes(
StructuredArtifact
artifact)
(Code)
(Java Doc)
public
String
getDocumentRoot()
(Code)
(Java Doc)
public
String
getExternalType()
(Code)
(Java Doc)
public
String
getExternalUri(
Id
artifactId,
String
name)
(Code)
(Java Doc)
public
IdManager
getIdManager()
(Code)
(Java Doc)
public
String
getInstruction()
(Code)
(Java Doc)
public
Class
getInterface()
(Code)
(Java Doc)
public
Date
getModified()
(Code)
(Java Doc)
public
String
getRootNode()
(Code)
(Java Doc)
public
SchemaNode
getRootSchema()
(Code)
(Java Doc)
public
SchemaNode
getSchema()
(Code)
(Java Doc)
protected
File
getSchemaFile(
String
schemaFileName)
(Code)
(Java Doc)
public
String
getSchemaFileName()
(Code)
(Java Doc)
public
String
getSiteId()
(Code)
(Java Doc)
public
InputStream
getStream(
Id
artifactId)
(Code)
(Java Doc)
public
Type
getType()
(Code)
(Java Doc)
public
String
getTypeId()
(Code)
(Java Doc)
public
boolean isInstance(
Artifact
testObject)
(Code)
(Java Doc)
public
boolean isSystemOnly()
(Code)
(Java Doc)
public
Artifact
load(
Id
id) throws
PersistenceException
(Code)
(Java Doc)
public
StructuredArtifact
load(
ContentResource
resource)
(Code)
(Java Doc)
protected
Artifact
load(
String
id) throws
PersistenceException
(Code)
(Java Doc)
protected
String
pathToWebInf()
(Code)
(Java Doc)
public
void prepareInstance(
Artifact
object)
(Code)
(Java Doc)
public
void refresh()
(Code)
(Java Doc)
public
void remove(
Artifact
object) throws
PersistenceException
(Code)
(Java Doc)
public
void setIdManager(
IdManager
idManager)
(Code)
(Java Doc)
public
void setInstruction(
String
instruction)
(Code)
(Java Doc)
public
void setModified(
Date
schemaDate)
(Code)
(Java Doc)
public
void setResourceLoader(ResourceLoader resourceLoader)
(Code)
(Java Doc)
public
void setRootNode(
String
rootNode)
(Code)
(Java Doc)
public
void setSchema(
SchemaNode
schema)
(Code)
(Java Doc)
public
void setSchemaFileName(
String
schemaFileName)
(Code)
(Java Doc)
public
void setType(
Type
type)
(Code)
(Java Doc)
public
void setTypeId(
String
typeId)
(Code)
(Java Doc)
public
Artifact
store(
Artifact
object) throws
PersistenceException
(Code)
(Java Doc)
public
Artifact
store(
String
displayName,
String
contentType,
Type
type,
InputStream
in) throws
PersistenceException
(Code)
(Java Doc)
public
Artifact
update(
Artifact
object,
InputStream
in) throws
PersistenceException
(Code)
(Java Doc)
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.