本文整理汇总了Java中org.alfresco.opencmis.CMISConnector类的典型用法代码示例。如果您正苦于以下问题:Java CMISConnector类的具体用法?Java CMISConnector怎么用?Java CMISConnector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CMISConnector类属于org.alfresco.opencmis包,在下文中一共展示了CMISConnector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSortedACLs
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* @return Sorted list of <code>AccessPermission</code> based on <code>CMISConnector.AccessPermissionComparator</code>
* and <code>AccessStatus</code> of the permission for an authority.
*/
public static List<AccessPermission> getSortedACLs(Set<AccessPermission> acls)
{
ArrayList<AccessPermission> ordered = new ArrayList<AccessPermission>(acls);
Map<String, AccessPermission> deDuplicatedPermissions = new HashMap<String, AccessPermission>(acls.size());
Collections.sort(ordered, new CMISConnector.AccessPermissionComparator());
for (AccessPermission current : ordered)
{
String composedKey = current.getAuthority() + current.getPermission();
if (current.getAccessStatus() == AccessStatus.ALLOWED)
{
deDuplicatedPermissions.put(composedKey, current);
}
else if (current.getAccessStatus() == AccessStatus.DENIED)
{
deDuplicatedPermissions.remove(composedKey);
}
}
return new ArrayList<AccessPermission>(deDuplicatedPermissions.values());
}
示例2: getValueInternal
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
public Serializable getValueInternal(CMISNodeInfo nodeInfo)
{
if (!nodeInfo.hasPWC())
{
return null;
}
return connector.constructObjectId(nodeInfo.getCurrentNodeId(), CMISConnector.PWC_VERSION_LABEL);
}
示例3: DirectProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public DirectProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName,
QName alfrescoName)
{
super(serviceRegistry, connector, propertyName);
this.alfrescoName = alfrescoName;
}
示例4: RepoService
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public RepoService(ApplicationContext applicationContext) throws Exception
{
this.applicationContext = applicationContext;
this.publicApiContext = new PublicApiTestContext(applicationContext);
this.authenticationService = (MutableAuthenticationService)applicationContext.getBean("AuthenticationService");
this.siteService = (SiteService)applicationContext.getBean("SiteService");
this.activityService = (ActivityService)applicationContext.getBean("activityService");
this.fileFolderService = (FileFolderService)applicationContext.getBean("FileFolderService");
this.contentService = (ContentService)applicationContext.getBean("ContentService");
this.commentService = (CommentService)applicationContext.getBean("CommentService");
this.nodeService = (NodeService)applicationContext.getBean("NodeService");
this.preferenceService = (PreferenceService)applicationContext.getBean("PreferenceService");
this.taggingService = (TaggingService)applicationContext.getBean("TaggingService");
this.ratingService = (RatingService)applicationContext.getBean("RatingService");
this.tenantService = (TenantService)applicationContext.getBean("tenantService");
this.tenantAdminService = (TenantAdminService)applicationContext.getBean("tenantAdminService");
this.personService = (PersonService)applicationContext.getBean("PersonService");
this.contentStoreCleaner = (ContentStoreCleaner)applicationContext.getBean("contentStoreCleaner");
this.postDAO = (ActivityPostDAO)applicationContext.getBean("postDAO");
this.nodeRatingSchemeRegistry = (NamedObjectRegistry<RatingScheme>)applicationContext.getBean("nodeRatingSchemeRegistry");
this.cociService = (CheckOutCheckInService)applicationContext.getBean("CheckoutCheckinService");
this.favouritesService = (FavouritesService)applicationContext.getBean("FavouritesService");
this.dictionaryService = (DictionaryService)applicationContext.getBean("dictionaryService");
this.invitationService = (InvitationService)applicationContext.getBean("InvitationService");
this.lockService = (LockService)applicationContext.getBean("LockService");
this.cmisConnector = (CMISConnector)applicationContext.getBean("CMISConnector");
this.nodeIndexer = (NodeIndexer)applicationContext.getBean("nodeIndexer");
this.activities = (Activities)applicationContext.getBean("activities");
this.hiddenAspect = (HiddenAspect)applicationContext.getBean("hiddenAspect");
this.networksService = (NetworksService)applicationContext.getBean("networksService");
this.namespaceService = (NamespaceService)applicationContext.getBean("namespaceService");
this.transactionHelper = (RetryingTransactionHelper)applicationContext.getBean("retryingTransactionHelper");
Scheduler scheduler = (Scheduler)applicationContext.getBean("schedulerFactory");
JobDetailBean contentStoreCleanerJobDetail = (JobDetailBean)applicationContext.getBean("contentStoreCleanerJobDetail");
scheduler.pauseJob(contentStoreCleanerJobDetail.getName(), contentStoreCleanerJobDetail.getGroup());
ChildApplicationContextFactory activitiesFeed = (ChildApplicationContextFactory)applicationContext.getBean("ActivitiesFeed");
ApplicationContext activitiesFeedCtx = activitiesFeed.getApplicationContext();
this.postLookup = (PostLookup)activitiesFeedCtx.getBean("postLookup");
this.feedGenerator = (FeedGenerator)activitiesFeedCtx.getBean("feedGenerator");
this.feedGeneratorJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedGeneratorJobDetail");
this.postLookupJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("postLookupJobDetail");
this.feedCleanerJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedCleanerJobDetail");
this.postCleanerJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("postCleanerJobDetail");
this.feedNotifierJobDetail = (JobDetailBean)activitiesFeedCtx.getBean("feedNotifierJobDetail");
this.feedCleaner = (FeedCleaner)activitiesFeedCtx.getBean("feedCleaner");
// Pause activities jobs so that we aren't competing with their scheduled versions
scheduler.pauseJob(feedGeneratorJobDetail.getName(), feedGeneratorJobDetail.getGroup());
scheduler.pauseJob(postLookupJobDetail.getName(), postLookupJobDetail.getGroup());
scheduler.pauseJob(feedCleanerJobDetail.getName(), feedCleanerJobDetail.getGroup());
scheduler.pauseJob(postCleanerJobDetail.getName(), postCleanerJobDetail.getGroup());
scheduler.pauseJob(feedNotifierJobDetail.getName(), feedNotifierJobDetail.getGroup());
this.systemNetwork = new TestNetwork(TenantService.DEFAULT_DOMAIN, true);
}
示例5: SecondaryTypesProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public SecondaryTypesProperty(ServiceRegistry serviceRegistry, CMISConnector connector, CMISMapping cmisMapping)
{
super(serviceRegistry, connector, PropertyIds.SECONDARY_OBJECT_TYPE_IDS);
this.cmisMapping = cmisMapping;
}
示例6: ContentStreamFileNameProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
public ContentStreamFileNameProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.CONTENT_STREAM_FILE_NAME, ContentModel.PROP_NAME);
}
示例7: IsLatestVersionProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public IsLatestVersionProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.IS_LATEST_VERSION);
}
示例8: IsImmutableProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public IsImmutableProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.IS_IMMUTABLE);
lockService = serviceRegistry.getLockService();
}
示例9: setCmisConnector
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* @param cmisConnector CMISConnector
*/
public void setCmisConnector(CMISConnector cmisConnector)
{
this.cmisConnector = cmisConnector;
}
示例10: VersionSeriesIdProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public VersionSeriesIdProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.VERSION_SERIES_ID);
}
示例11: IsVersionSeriesCheckedOutProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*/
public IsVersionSeriesCheckedOutProperty(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.IS_VERSION_SERIES_CHECKED_OUT);
}
示例12: IsPrivateWorkingCopy
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
protected IsPrivateWorkingCopy(ServiceRegistry serviceRegistry, CMISConnector connector)
{
super(serviceRegistry, connector, PropertyIds.IS_PRIVATE_WORKING_COPY);
}
示例13: AllowedChildObjectTypeIdsProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*
* @param serviceRegistry ServiceRegistry
* @param connector CMISConnector
* @param cmisMapping CMISMapping
*/
public AllowedChildObjectTypeIdsProperty(ServiceRegistry serviceRegistry, CMISConnector connector,
CMISMapping cmisMapping)
{
super(serviceRegistry, connector, PropertyIds.ALLOWED_CHILD_OBJECT_TYPE_IDS);
this.cmisMapping = cmisMapping;
}
示例14: FixedValueProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*
* @param serviceRegistry ServiceRegistry
* @param connector CMISConnector
* @param propertyName String
* @param value Serializable
*/
public FixedValueProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName,
Serializable value)
{
super(serviceRegistry, connector, propertyName);
this.value = value;
}
示例15: AbstractProperty
import org.alfresco.opencmis.CMISConnector; //导入依赖的package包/类
/**
* Construct
*
* @param serviceRegistry ServiceRegistry
* @param connector CMISConnector
* @param propertyName String
*/
protected AbstractProperty(ServiceRegistry serviceRegistry, CMISConnector connector, String propertyName)
{
this.serviceRegistry = serviceRegistry;
this.connector = connector;
this.propertyName = propertyName;
}