|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.coll.attachment.AttachmentUtil
public class AttachmentUtil
| Constructor Summary | |
|---|---|
AttachmentUtil()
|
|
| Method Summary | |
|---|---|
static IRelation |
checkAttachmentRelation(IResource res)
checks existence of Relation "attachment-of" |
static IRelation |
checkAttachmentRelation(IResourceContext context,
String sourceId)
checks existence of Relation "attachment-of" |
static void |
checkPath(IResourceContext context,
String repPath,
String tmpPath)
|
static String |
createAttachmentID()
create a new ID of to be used by the Attachment Relation |
static IRelation |
createAttachmentRelation(IResourceContext context,
String sourceId,
String path)
creates Relation "attachment-of" |
static IRelation |
createAttachmentRelation(IResource res,
String path)
creates Relation "attachment-of" |
static ICollection |
getAttachmentCollection(IResource res)
returns target-Collection of Relation "attachment-of" relation must exist |
static ICollection |
getAttachmentCollection(IResourceContext context,
String sourceId)
returns target-ID of Relation "attachment-of" relation must exist |
static IRelation |
getAttachmentSourceRelation(IResource resource)
checks existence of Relation "attachment-of" |
static String |
getAttachmentTargetID(IResource res)
returns target-ID of Relation "attachment-of" relation must exist |
static String |
getAttachmentTargetID(IResourceContext context,
IRelation attachRelation)
returns target-ID of Relation "attachment-of" relation must exist |
static IRelation |
getAttachmentTargetRelation(IResource attachmentCollection)
checks existence of Relation "attachment-of" |
static PropertyDef |
getPropertyDef()
|
static PropertyName |
getPropertyNameCount()
|
static IResource |
getRelationSrcResource(IResource res)
|
static void |
setLifetime(IRelation rel,
long lifetime)
set Lifetime of Attachment Folder |
static void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentUtil()
| Method Detail |
|---|
public static void shutdown()
public static String createAttachmentID()
throws Exception
Exception
public static void setLifetime(IRelation rel,
long lifetime)
throws Exception
path - to storage of attachmentsid - ID of Attachmentslifetime - in seconds
Exceptionpublic static IResource getRelationSrcResource(IResource res)
public static IRelation checkAttachmentRelation(IResourceContext context,
String sourceId)
throws Exception
sourceId - source of Relationcontext - ResourceContext, used by Relation-Service
Exception
public static IRelation createAttachmentRelation(IResourceContext context,
String sourceId,
String path)
throws Exception
sourceId - source of Relationcontext - ResourceContext, used by Relation-Servicepath - where the Relation is stored
Exception
public static String getAttachmentTargetID(IResourceContext context,
IRelation attachRelation)
throws Exception
sourceId - source of Relationcontext - ResourceContext, used by Relation-Servicepath - where the Relation is stored
Exception
public static ICollection getAttachmentCollection(IResourceContext context,
String sourceId)
throws Exception
sourceId - source of Relationcontext - ResourceContext, used by Relation-Servicepath - where the Relation is stored
Exception
public static IRelation checkAttachmentRelation(IResource res)
throws Exception
res - source of Relation
Exception
public static IRelation getAttachmentTargetRelation(IResource attachmentCollection)
throws Exception
res - ICollection where Attachments are stored
Exception
public static IRelation getAttachmentSourceRelation(IResource resource)
throws Exception
res - ICollection where Attachments are stored
Exception
public static IRelation createAttachmentRelation(IResource res,
String path)
throws Exception
res - source of Relationpath - where the Relation is stored
Exception
public static String getAttachmentTargetID(IResource res)
throws Exception
res - source of Relationpath - where the Relation is stored
Exception
public static ICollection getAttachmentCollection(IResource res)
throws Exception
res - source of Relationpath - where the Relation is stored
Exceptionpublic static PropertyName getPropertyNameCount()
public static PropertyDef getPropertyDef()
public static void checkPath(IResourceContext context,
String repPath,
String tmpPath)
throws NoAttachmentListException
NoAttachmentListException
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||